/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_092.phpt | 26 $test = new Test; 27 $test->foo(); 28 $test->foo(); 29 $test->bar(); 30 $test->bar(); 31 var_dump($test);
|
H A D | static_type_trait.phpt | 7 public function test($arg): static { 20 var_dump($c->test($c)); 21 var_dump($c->test($p)); 22 var_dump($p->test($p)); 23 var_dump($p->test($c)); 34 Fatal error: Uncaught TypeError: C::test(): Return value must be of type P, C returned in %s:%d 36 #0 %s(%d): C->test(Object(C))
|
/php-src/Zend/tests/variadic/ |
H A D | typehint_error.phpt | 6 function test(array... $args) { 10 test(); 11 test([0], [1], [2]); 12 test([0], [1], 2); 36 Fatal error: Uncaught TypeError: test(): Argument #3 must be of type array, int given, called in %s… 38 #0 %s(%d): test(Array, Array, 2)
|
/php-src/ext/standard/tests/file/ |
H A D | stream_rfc2397_004.phpt | 9 'data://,;test', 10 'data://text/plain,test', 11 'data://text/plain;charset=US-ASCII,test', 24 string(5) ";test" 25 string(4) "test" 26 string(4) "test"
|
H A D | pathinfo_variaton.phpt | 19 "../foo/test.link", 265 string(4) "test" 267 string(4) "test" 270 string(4) "test" 272 string(4) "test" 321 string(4) "test" 323 string(4) "test" 326 string(4) "test" 328 string(4) "test" 343 string(4) "test" [all …]
|
/php-src/Zend/tests/ |
H A D | bug19859.phpt | 5 class test 9 print "test::__call invoked for method '$method'\n"; 12 $x = new test; 18 test::__call invoked for method 'fake' 19 test::__call invoked for method 'fake' 20 test::__call invoked for method 'fake'
|
H A D | bug24436.phpt | 7 class test { 9 if (empty($this->test[0][0])) { print "test1\n";} 10 if (!isset($this->test[0][0])) { print "test2\n";} 11 if (empty($this->test)) { print "test1\n";} 12 if (!isset($this->test)) { print "test2\n";} 16 $test1 = new test();
|
H A D | bug78589.phpt | 11 $test = new Test; 12 $test->foo = [&$test->foo]; 13 $ary = [&$ary, $test]; 14 unset($ary, $test);
|
H A D | grandparent_prototype.phpt | 2 Protected visibility test case with a grandparent prototype 7 protected function test() {} 11 $x->test(); // Uncaught Error: Call to protected method D::test() from scope B 15 protected function test() {} 18 protected function test() {
|
/php-src/Zend/tests/named_params/ |
H A D | call_user_func_array.phpt | 7 $test = function($a = 'a', $b = 'b', $c = 'c') { 14 call_user_func_array($test, ['A', 'B']); 15 call_user_func_array($test, [1 => 'A', 0 => 'B']); 16 call_user_func_array($test, ['A', 'c' => 'C']); 19 call_user_func_array($test, ['d' => 'D']); 24 call_user_func_array($test, ['c' => 'C', 'A']); 32 call_user_func_array($test, ['A', 'B']); 33 call_user_func_array($test, [1 => 'A', 0 => 'B']); 34 call_user_func_array($test, ['A', 'c' => 'C']); 37 call_user_func_array($test, ['d' => 'D']); [all …]
|
/php-src/ext/spl/tests/ |
H A D | bug54384.phpt | 6 function test($f) { 19 test( function() { 29 test( function() { 39 test( function() { 48 test ( function() { 57 test ( function() { 66 test ( function() { 75 test ( function() { 84 test ( function() { 93 test ( function() { [all …]
|
/php-src/sapi/cli/tests/ |
H A D | 024.phpt | 16 $filename_good = __DIR__."/024_good.test.php"; 18 $filename_bad = __DIR__."/024_bad.test.php"; 32 class test 58 [0] => No syntax errors detected in %s024_good.test.php 74 [3] => Errors parsing %s024_bad.test.php 82 [2] => Errors parsing %s024_bad.test.php 85 [5] => Errors parsing %s024_bad.test.php 92 [2] => Errors parsing %s024_bad.test.php 96 [6] => Errors parsing %s024_bad.test.php 103 [2] => Errors parsing %s024_bad.test.php [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | strrev_variation1.phpt | 47 "t@@#$% %test ^test &test *test +test -test", 48 "!test ~test `test` =test= @test@test.com", 49 "/test/r\test\strrev\t\\u /uu/",
|
H A D | htmlentities18.phpt | 8 "test+s & some more D", 9 "test+s & some more D", 18 foreach ($tests as $test) { 19 var_dump(htmlentities($test, ENT_QUOTES, NULL, FALSE)); 20 var_dump(htmlspecialchars($test, ENT_QUOTES, NULL, FALSE)); 28 string(33) "test+s & some more D" 29 string(33) "test+s & some more D" 30 string(34) "test+s & some more D" 31 string(34) "test+s & some more D"
|
/php-src/ext/zlib/tests/ |
H A D | bug71417.phpt | 8 function test($case) { 15 // $ php test-zlib-inflate.php 18 // $ gzip test-zlib-inflate.gz 23 // $ php test-zlib-inflate.php 25 // $ gzip test-zlib-inflate.gz 30 // $ php test-zlib-inflate.php 33 // $ gzip test-zlib-inflate.gz 62 test(1); 63 test(2); 64 test(3); [all …]
|
/php-src/ext/opcache/tests/ |
H A D | exit_in_call_arg.phpt | 8 function test($c) { 12 var_dump("test"); 15 test(false); 16 test(true); 20 string(4) "test"
|
/php-src/ext/dom/tests/ |
H A D | bug81642.phpt | 10 $doc->appendChild($target = $doc->createElement('test')); 16 $doc->appendChild($target = $doc->createElement('test')); 22 $doc->appendChild($target = $doc->createElement('test')); 28 $doc->appendChild($target = $doc->createElement('test')); 35 <test/> 38 <test/> 42 <test/> 47 <test/>
|
H A D | DOM4_ParentNode_append_wrong_document.phpt | 9 function test($method) { 11 $dom1->loadXML('<test/>'); 14 $dom2->loadXML('<test><foo /></test>'); 26 test("append"); 27 test("prepend");
|
/php-src/ext/dom/tests/modern/html/serializer/ |
H A D | HTMLDocument_serialize_full_document.phpt | 25 <test:test></test:test> 48 <test:test></test:test>
|
/php-src/ext/phar/tests/cache_list/files/ |
H A D | write2.phar.inc | 10 mkdir("phar://" . __FILE__ . "/test"); 11 var_dump(is_dir("phar://" . __FILE__ . "/test")); 14 var_dump(isset($phar["test"])); 15 var_dump(isset($phar2["test"])); 20 $phar['test.txt'] = "hi 22 $phar['test.txt']->setMetadata('hi');
|
/php-src/Zend/tests/type_declarations/iterable/ |
H A D | iterable_001.phpt | 6 function test(iterable $iterable) { 16 test([1, 2, 3]); 17 test(gen()); 18 test(new ArrayIterator([1, 2, 3])); 21 test(1); 48 test(): Argument #1 ($iterable) must be of type Traversable|array, int given, called in %s on line …
|
/php-src/Zend/tests/type_declarations/literal_types/ |
H A D | false_no_coercion.phpt | 6 function test(false $v) { var_dump($v); } 9 test(0); 14 test(''); 19 test([]); 26 test(): Argument #1 ($v) must be of type false, int given, called in %s on line %d 27 test(): Argument #1 ($v) must be of type false, string given, called in %s on line %d 28 test(): Argument #1 ($v) must be of type false, array given, called in %s on line %d
|
/php-src/ext/sqlite3/tests/ |
H A D | bug72668.phpt | 8 throw new \Exception("test exception\n"); 15 $result = $db->query('SELECT my_udf_md5("test")'); 22 $result = $db->querySingle('SELECT my_udf_md5("test")'); 28 $statement = $db->prepare('SELECT my_udf_md5("test")'); 38 Exception: test exception 39 Exception: test exception 40 Exception: test exception
|
/php-src/ext/session/tests/ |
H A D | session_write_close_variation4.phpt | 16 var_dump(session_id("test")); 39 string(4) "test" 41 string(4) "test" 43 string(4) "test" 45 string(4) "test" 47 string(4) "test" 49 string(4) "test"
|
/php-src/ext/simplexml/tests/ |
H A D | 030.phpt | 9 xmlns:s="urn::test" xmlns:t="urn::test-t"> 10 <child1>test</child1> 11 <child1>test 2</child1> 26 $atts = $sxe->attributes("urn::test"); 34 test 35 test 2
|