/php-src/Zend/tests/ |
H A D | ns_078.phpt | 5 namespace test\ns1; 20 use test\ns1\Foo; 21 use test\ns1\Foo as Bar; 22 use \test\ns1\Foo2; 23 use \test\ns1\Foo2 as Bar2; 31 test\ns1\Foo 32 test\ns1\Foo 33 test\ns1\Foo2 34 test\ns1\Foo2
|
H A D | gh10935.phpt | 6 static $test; 9 return self::$test; 13 return static::$test; 18 return self::$test; 31 return self::$test; 51 A::$test = 'A'; 52 B::$test = 'B'; 54 echo 'A::$test: ' . A::$test . "\n"; 59 echo 'B::$test: ' . B::$test . "\n"; 70 A::$test: A [all …]
|
H A D | ns_011.phpt | 5 namespace test\ns1; 12 \test\ns1\foo(); 14 \test\ns1\bar(); 21 test\ns1\foo 22 test\ns1\foo 23 test\ns1\bar 24 test\ns1\bar
|
H A D | ns_021.phpt | 5 namespace test; 18 \test\foo(); 19 \test\test::foo(); 22 test\foo 23 test\foo 24 test\Test::foo
|
/php-src/ext/spl/tests/ |
H A D | bug70959.phpt | 6 protected $test; 9 return $this->test; 12 public function setTest($test) { 13 $this->test = $test; 18 $obj->setTest('test'); 24 string(4) "test" 25 string(4) "test"
|
H A D | RecursiveCallbackFilterIteratorTest.phpt | 7 function test($value, $key, $inner) { 8 return test($value, $key, $inner); 13 static function test($value, $key, $inner) { 14 return test($value, $key, $inner); 18 function test($value, $key, $inner) { 34 'static method (2)' => function() { return 'B::test'; }, 35 'function' => function() { return 'test'; }, 39 foreach($tests as $name => $test) { 41 $callback = $test(); 52 // same test, with no reference to callback [all …]
|
/php-src/ext/standard/tests/file/ |
H A D | pathinfo_basic1.phpt | 21 'c:\test\adir', 22 'c:\test\adir\\', 27 'c:\test\afile', 28 'c:\\test\\afile', 150 string(12) "c:\test\adir" 152 string(12) "c:\test\adir" 253 string(8) "c://test" 259 string(8) "c://test" 282 string(12) "c:\test\prog" 309 string(7) "c:/test" [all …]
|
H A D | dirname_basic-win32.phpt | 23 'c:\test\afile', 24 'c:\\test\\afile', 25 'c://test//afile', 26 'c:\test\afile\\', 62 string(7) "c:\test" 63 string(7) "c:\test" 64 string(8) "c://test" 65 string(7) "c:\test" 76 string(15) " c:\test\adir" 77 string(12) "c:\test\adir" [all …]
|
H A D | userwrapper.phpt | 5 class test { 27 we effectively test the stat cache mechanism */ 36 stream_wrapper_register('test', 'test'); 38 unlink('test://example.com/path/to/file'); 39 rename('test://example.com/path/to/from', 'test://example.com/path/to/to'); 42 mkdir('test://example.com/path/to/directory', 0755); 43 rmdir('test://example.com/path/to/directory'); 44 print_r(stat('test://example.com/path/to/file')); 49 Unlinking file: test://example.com/path/to/file 50 Renaming test://example.com/path/to/from to test://example.com/path/to/to [all …]
|
/php-src/ext/filter/tests/ |
H A D | 045.phpt | 15 $a = array("test"=>array("filter"=>(string)FILTER_VALIDATE_INT, "flags"=>(string)FILTER_FLAG_ALLOW_… 16 $ret = filter_var_array(array("test"=>"0xff"), $a); 17 echo ($ret["test"] === 255 && is_string($a["test"]["filter"]) && $a["test"]["filter"] == FILTER_VAL… 18 echo ($ret["test"] === 255 && is_string($a["test"]["flags"]) && $a["test"]["flags"] == FILTER_FLAG_… 19 $a = array("test"=>(string)FILTER_VALIDATE_INT); 20 $ret = filter_var_array(array("test"=>"255"), $a); 21 echo ($ret["test"] === 255 && is_string($a["test"]) && $a["test"] == FILTER_VALIDATE_INT)?"ok\n":"b…
|
/php-src/Zend/tests/readonly_props/ |
H A D | initialization_scope.phpt | 19 $test = new B; 21 $test->prop = 1; 26 $test->initProtected(); 31 $test->initPrivate(); 32 var_dump($test->prop); 35 $test = new B; 39 var_dump($test->prop); 45 $test = new C; 46 $test->initPrivate(); 47 var_dump($test->prop); [all …]
|
H A D | variation_nested.phpt | 19 function r($test) { 20 echo $test->prop->prop; 23 function w($test) { 24 $test->prop->prop = 0; 28 function rw($test) { 29 $test->prop->prop += 1; 33 function im($test) { 38 function is($test) { 42 function us($test) { 51 $test->init(); [all …]
|
/php-src/ext/soap/tests/bugs/ |
H A D | bug31695.phpt | 39 $old = $client->__setLocation("test://3"); 54 test://0 55 test://1 56 test://2 57 test://1 58 test://3 59 test://3 60 test://1 61 test://0 62 test://1 [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | ltrim.phpt | 24 var_dump ( ltrim(" \t\0 ltrim test") ); /* without second Argument */ 25 …var_dump ( ltrim(" ltrim test" , "") ); /* no characters in second Argumen… 27 …var_dump ( ltrim(" ltrim test", " ") ); /* with single space as second Arg… 47 string(10) "ltrim test" 48 string(13) " ltrim test" 49 string(18) " ltrim test" 50 string(10) "ltrim test" 51 string(11) " ltrim test" 52 string(10) "ltrim test" 53 string(10) "ltrim test" [all …]
|
H A D | strtr_basic.phpt | 10 test strtr 14 var_dump( strtr("test strtr", "t", "T") ); 15 var_dump( strtr('test strtr', 't', 'T') ); 20 var_dump( strtr("test strtr", "test", "TEST") ); 21 var_dump( strtr('test strtr', 'test', 'TEST') ); 22 var_dump( strtr($heredoc_str, "test", "TEST") ); 25 var_dump( strtr("test strtr", "test", "TESTz") ); 26 var_dump( strtr('test strtr', 'testz', 'TEST') ); 27 var_dump( strtr($heredoc_str, "test", "TESTz") ); 30 var_dump( strtr("test strtr", $trans1_arr) ); [all …]
|
/php-src/ext/pdo_mysql/ |
H A D | config.m4 | 7 if test "$PHP_PDO_MYSQL" != "no"; then 11 if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then 21 if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then 25 if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then 26 if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then 29 if test -d "$PHP_PDO_MYSQL" ; then 39 if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then 45 if test -n "$PDO_MYSQL_CONFIG"; then 49 elif test -n "$PDO_MYSQL_DIR"; then 83 if test -n "$PDO_MYSQL_CONFIG"; then [all …]
|
/php-src/ext/odbc/tests/ |
H A D | bug47803.phpt | 44 array('id'=>1, 'name'=>'test 1'), 110 string(6) "test 1" 118 string(6) "test 2" 126 string(6) "test 3" 134 string(6) "test 4" 142 string(6) "test 5" 150 string(7) "test 10" 158 string(6) "test 9" 166 string(6) "test 8" 174 string(6) "test 7" [all …]
|
/php-src/Zend/tests/type_declarations/dnf_types/ |
H A D | dnf_intersection_and_single.phpt | 42 $test->foo1($a); 43 $test->foo2($a); 44 $test->foo1($i); 45 $test->foo2($i); 46 $test->prop1 = $a; 47 $test->prop1 = $i; 48 $test->prop2 = $a; 51 $test->bar1($a); 52 $test->bar2($a); 53 $test->bar1($b); [all …]
|
/php-src/ext/session/tests/ |
H A D | bug70013.phpt | 16 $session['test'] = 1; 18 $session['test'] = 2; 20 var_dump($session['test'] === $_SESSION['test']); 22 $session['test'] = 3; 24 $session['test'] = 4; 26 var_dump($session['test'] === $_SESSION['test']);
|
/php-src/ext/phar/tests/cache_list/files/ |
H A D | write3.phar.inc | 9 var_dump(file_exists("phar://" . __FILE__ . "/test"), is_dir("phar://" . __FILE__ . "/test")); 10 rmdir("phar://" . __FILE__ . "/test"); 12 var_dump(file_exists("phar://" . __FILE__ . "/test"), is_dir("phar://" . __FILE__ . "/test")); 17 $phar['test.txt'] = "hi 19 $phar['test.txt']->setMetadata('hi'); 20 $phar->addEmptyDir('test');
|
/php-src/ext/phar/tests/ |
H A D | bug79912.phpt | 11 $phar->addFromString("test.txt", "This is a test file.This is a test file.This is a test file."); 12 $file = $phar["test.txt"]; 19 var_dump(file_get_contents(__DIR__ . "/bug79912/test.txt")); //the extracted file in the folder sho… 23 string(60) "This is a test file.This is a test file.This is a test file." 28 string(60) "This is a test file.This is a test file.This is a test file." 31 @unlink(__DIR__ . "/bug79912/test.txt");
|
/php-src/ext/standard/tests/general_functions/ |
H A D | parse_ini_file.phpt | 13 test = 18 test== 24 test=test= 30 test= \"new 45 test=hello 52 test=hello 83 test=test2 84 test=test3 85 test=test4 126 ["test"]=> [all …]
|
/php-src/ext/dom/tests/ |
H A D | gh11906.phpt | 18 $test = $doc->createElement('foo'); 19 $test->append($child); 22 echo "--- \$test output ---\n"; 23 echo $doc->saveXML($test), "\n"; 24 $test->prepend($child); 27 echo "--- \$test output ---\n"; 28 echo $doc->saveXML($test), "\n"; 29 $test->append($child); 37 --- $test output --- 44 --- $test output ---
|
H A D | DOMElement_toggleAttribute.phpt | 65 var_dump($dom->documentElement->toggleAttribute('test:test')); 71 echo "namespace of test:test = "; 72 var_dump($dom->documentElement->getAttributeNode('test:test')->namespaceURI); 79 var_dump($dom->documentElement->toggleAttribute('test:test')); 95 <html id="test"></html> 104 <html id="test"></html> 108 <html id="test"/> 111 <html id="test" SELECTED=""/> 117 <html id="test" SELECTED=""/> 145 …ner xmlns="some:ns" xmlns:anotherone="" test:test=""><foo:bar xmlns:foo="some:ns2" foo:test="" doe… [all …]
|
H A D | gh10234.phpt | 28 $attribute->textContent = 'quote "test"'; 32 $attribute->textContent = "quote 'test'"; 36 $attribute->textContent = "quote '\"test\"'"; 50 $document->documentElement->textContent = 'quote "test"'; 72 string(12) "quote "test"" 75 string(12) "quote 'test'" 78 string(14) "quote '"test"'" 88 string(12) "quote "test"" 89 string(69) "<element attribute="quote '"test"'">quote "test"</element> 91 string(12) "quote 'test'" [all …]
|