Home
last modified time | relevance | path

Searched refs:test (Results 251 – 275 of 4507) sorted by relevance

1...<<11121314151617181920>>...181

/PHP-5.5/ext/dba/tests/
H A Ddba_db4_016.phpt13 require_once(dirname(__FILE__) .'/test.inc');
19 var_dump(dba_insert("key1", "This is a test insert", $db_file));
29 // Now test reopening it
33 var_dump(dba_insert("key1", "second open test", $db_file));
34 var_dump(dba_insert("key2", "second open test row 2", $db_file));
54 This is a test insert
58 This is a test insert
59 second open test row 2
/PHP-5.5/ext/iconv/tests/
H A Diconv_substr.phpt34 bar("This is a test", 100000);
35 bar("This is a test", 0, 100000);
36 bar("This is a test", -3);
37 bar("This is a test", 0, -9);
38 bar("This is a test", 0, -100000);
39 bar("This is a test", -9, -100000);
49 string(14) "This is a test"
50 string(14) "This is a test"
/PHP-5.5/Zend/tests/
H A Dcompare_001_64bit.phpt8 class test {
25 new test,
105 == object(test)#%d (0) {}
128 != object(test)#%d (0) {}
151 != object(test)#%d (0) {}
309 object(test)#%d (0) {}
312 object(test)#%d (0) {}
315 object(test)#%d (0) {}
326 object(test)#%d (0) {} == object(test)#%d (0) {}
328 object(test)#%d (0) {}
[all …]
H A Dcompare_003_64bit.phpt8 class test {
25 new test,
105 <= object(test)#%d (0) {}
128 > object(test)#%d (0) {}
151 <= object(test)#%d (0) {}
309 object(test)#%d (0) {}
312 object(test)#%d (0) {}
315 object(test)#%d (0) {}
326 object(test)#%d (0) {} <= object(test)#%d (0) {}
328 object(test)#%d (0) {}
[all …]
H A Dcompare_004_64bit.phpt8 class test {
25 new test,
105 >= object(test)#%d (0) {}
128 >= object(test)#%d (0) {}
151 < object(test)#%d (0) {}
309 object(test)#%d (0) {}
312 object(test)#%d (0) {}
315 object(test)#%d (0) {}
326 object(test)#%d (0) {} >= object(test)#%d (0) {}
328 object(test)#%d (0) {}
[all …]
H A Dcompare_005_64bit.phpt8 class test {
25 new test,
105 >= object(test)#%d (0) {}
128 >= object(test)#%d (0) {}
151 < object(test)#%d (0) {}
309 object(test)#%d (0) {}
312 object(test)#%d (0) {}
315 object(test)#%d (0) {}
326 object(test)#%d (0) {} >= object(test)#%d (0) {}
328 object(test)#%d (0) {}
[all …]
H A Dcompare_006_64bit.phpt8 class test {
25 new test,
105 <= object(test)#%d (0) {}
128 > object(test)#%d (0) {}
151 <= object(test)#%d (0) {}
309 object(test)#%d (0) {}
312 object(test)#%d (0) {}
315 object(test)#%d (0) {}
326 object(test)#%d (0) {} <= object(test)#%d (0) {}
328 object(test)#%d (0) {}
[all …]
H A Dnowdoc_005.phpt2 unbraced complex variable replacement test (nowdoc)
9 This is nowdoc test #s $a, $b, $c['c'], and $d->d.
14 This is nowdoc test #s $a, $b, $c['c'], and $d->d.
22 This is nowdoc test #s $a, $b, $c['c'], and $d->d.
23 This is nowdoc test #s $a, $b, $c['c'], and $d->d.
H A Dnowdoc_006.phpt2 braced complex variable replacement test (nowdoc)
9 This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
14 This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
22 This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
23 This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
H A Dnowdoc_007.phpt2 braced and unbraced complex variable replacement test (nowdoc)
9 This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
14 This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
22 This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
23 This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
H A Dbug68118.phpt2 Bug #68118: $a->foo .= 'test'; can leave $a->foo undefined
8 $obj->test = 'meow';
13 $a->undefined .= 'test';
20 string(4) "test"
/PHP-5.5/ext/phar/tests/tar/
H A D033a.phpt17 $phar->addEmptyDir('test');
27 echo "test dir\n";
28 var_dump($phar['test']->isReadable());
29 $phar['test']->chmod(0000);
30 var_dump($phar['test']->isReadable());
31 $phar['test']->chmod(0666);
32 var_dump($phar['test']->isReadable());
/PHP-5.5/ext/phar/tests/zip/
H A D033a.phpt17 $phar->addEmptyDir('test');
27 echo "test dir\n";
28 var_dump($phar['test']->isExecutable());
29 $phar['test']->chmod(0777);
30 var_dump($phar['test']->isExecutable());
31 $phar['test']->chmod(0666);
32 var_dump($phar['test']->isExecutable());
/PHP-5.5/ext/gd/tests/
H A Djpg2gd.phpt2 jpeg <--> gd1/gd2 conversion test
18 echo imagegd(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd1") ? 'ok' : 'failed';
22 echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd2") ? 'ok' : 'failed';
26 echo imagejpeg(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.jpeg") ? 'ok' : 'failed';
30 echo imagejpeg(imagecreatefromgd2($cwd . "/test.gd2"), $cwd . "/test_gd2.jpeg") ? 'ok' : 'failed';
33 @unlink($cwd . "/test.gd1");
34 @unlink($cwd . "/test.gd2");
H A Dpng2gd.phpt2 png <--> gd1/gd2 conversion test
18 echo imagegd(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd1") ? 'ok' : 'failed';
22 echo imagegd2(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd2") ? 'ok' : 'failed';
26 echo imagepng(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.png") ? 'ok' : 'failed';
30 echo imagepng(imagecreatefromgd2($cwd . "/test.gd2"), $cwd . "/test_gd2.png") ? 'ok' : 'failed';
33 @unlink($cwd . "/test.gd1");
34 @unlink($cwd . "/test.gd2");
/PHP-5.5/tests/security/
H A Dopen_basedir_symlink.phpt17 $target = ($initdir."/test/ok/ok.txt");
23 $symlink = ($initdir."/test/ok/symlink.txt");
30 $target = ($initdir."/test/ok/ok.txt");
36 $symlink = ($initdir."/test/ok/ok2/ok.txt");
37 …ok.txt", $symlink)); // $target == (dirname($symlink)."/".$target) == ($initdir."/test/ok/ok.txt");
58 Warning: symlink(): open_basedir restriction in effect. File(%s/test/symlink.txt) is not within the…
64 Warning: symlink(): open_basedir restriction in effect. File(%s/test/symlink.txt) is not within the…
67 Warning: symlink(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the…
70 Warning: symlink(): open_basedir restriction in effect. File(%s/test/bad) is not within the allowed…
73 Warning: symlink(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the…
[all …]
/PHP-5.5/ext/hash/tests/
H A Djoaat.phpt18 foreach ($tests as $test) {
21 $result = hash("joaat", $test[0]);
22 if ($result != $test[1]) {
23 …echo "Iteration " . $i . " failed - expected '" . $test[1] . "', got '" . $result . "' for '" . $t…
/PHP-5.5/ext/phar/tests/cache_list/files/
H A Dwrite22.phar3 var_dump($p["test.txt"]->isCompressed());
4 $p["test.txt"]->decompress();
5 var_dump($p["test.txt"]->isCompressed());
8 6��������������������test.txt������H������E���������/�(P���p� �w��
H A Dwrite21.phar3 var_dump($p["test.txt"]->isCompressed());
4 $p["test.txt"]->compress(Phar::GZ);
5 var_dump($p["test.txt"]->isCompressed());
8 6���������������������test.txt���{��H������E�������<?php __HALT_COMPILER();u:ΰ�U��|ZM�̧�Є�…
H A Dwrite4.phar2 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"));
4 Phar::mount("test.txt", "phar://" . __FILE__ . "/tobemounted");
5 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"), file_get_contents("phar://" . __FILE__ . …
H A Dwrite7.phar3 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"));
4 $p->delete("test.txt");
6 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"));
9 6���������������������test.txt������H���zzo�������hi
/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_stmt_bind_param_many_columns.phpt14 The way we test the INSERT and data types overlaps with
15 the mysqli_stmt_bind_result test in large parts. There is only
16 one difference. This test uses mysqli_query()/mysqli_fetch_assoc() to
17 fetch the inserted values. This way we test
19 in this file and we test mysqli_stmt_bind_result() in the other
20 test -- therefore the "duplicate" makes some sense to me.
51 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
52 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
60 $link->query("CREATE TABLE test(" . implode(" , ", $str) . ") ENGINE=MyISAM");
62 printf("Failed to create the test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
/PHP-5.5/ext/standard/tests/strings/
H A Dphp_strip_whitespace.phpt11 $data = '/* test comment */';
15 $data = '<?php /* test comment */ ?>';
20 /* test class */
21 class test {
48 string(18) "/* test comment */"
51 class test { function foo () { echo $var; } } ?>"
/PHP-5.5/ext/standard/tests/file/
H A Duserstreams_003.phpt30 function test($name, $fd, $return_value, $func, $args, $expected_option, $expected_value) {
39 var_dump(stream_wrapper_register('test', 'test_wrapper'));
42 $fd = fopen("test://foo","r");
45 test("stream_set_blocking - 1", $fd, true, "stream_set_blocking", array($fd,0), STREAM_OPTION_BLOCK…
46 test("stream_set_blocking - 2", $fd, false, "stream_set_blocking", array($fd,1), STREAM_OPTION_BLOC…
47 test("stream_set_blocking - 3", $fd, "foo", "stream_set_blocking", array($fd,0), STREAM_OPTION_BLOC…
48 test("stream_set_blocking - 4", $fd2, true, "stream_set_blocking", array($fd2,1), STREAM_OPTION_BLO…
50 test("stream_set_write_buffer - 1", $fd, true, "stream_set_write_buffer", array($fd,0), STREAM_OPTI…
51 test("stream_set_write_buffer - 2", $fd, true, "stream_set_write_buffer", array($fd,4096), STREAM_O…
54 test("stream_set_timeout - 1", $fd, true, "stream_set_timeout", array($fd,10,11), STREAM_OPTION_REA…
[all …]
H A Dpathinfo_basic2.phpt20 'c:\test\..\test2\.\adir\afile.txt',
22 'c:\test\adir\afile..txt',
24 'c:\test\adir\afile.',
28 '..\.\..\test\afile.txt',
29 '.././../test/afile',
102 %unicode|string%(19) "c:\test\adir\afile."
130 %unicode|string%(19) "c:\test\adir\afile."
132 %unicode|string%(18) "c:\test\adir\afile"
190 %unicode|string%(18) "..\.\..\test\afile"
202 %unicode|string%(12) ".././../test"
[all …]

Completed in 55 milliseconds

1...<<11121314151617181920>>...181