Home
last modified time | relevance | path

Searched refs:test (Results 176 – 200 of 4950) sorted by relevance

12345678910>>...198

/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_092.phpt26 $test = new Test;
27 $test->foo();
28 $test->foo();
29 $test->bar();
30 $test->bar();
31 var_dump($test);
H A Dstatic_type_trait.phpt7 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 Dtypehint_error.phpt6 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 Dstream_rfc2397_004.phpt9 '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 Dpathinfo_variaton.phpt19 "../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 Dbug19859.phpt5 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 Dbug24436.phpt7 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 Dbug78589.phpt11 $test = new Test;
12 $test->foo = [&$test->foo];
13 $ary = [&$ary, $test];
14 unset($ary, $test);
H A Dgrandparent_prototype.phpt2 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 Dcall_user_func_array.phpt7 $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 Dbug54384.phpt6 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 D024.phpt16 $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 Dstrrev_variation1.phpt47 "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 Dhtmlentities18.phpt8 "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 Dbug71417.phpt8 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 Dexit_in_call_arg.phpt8 function test($c) {
12 var_dump("test");
15 test(false);
16 test(true);
20 string(4) "test"
/php-src/ext/dom/tests/
H A Dbug81642.phpt10 $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 DDOM4_ParentNode_append_wrong_document.phpt9 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 DHTMLDocument_serialize_full_document.phpt25 <test:test></test:test>
48 <test:test></test:test>
/php-src/ext/phar/tests/cache_list/files/
H A Dwrite2.phar.inc10 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 Diterable_001.phpt6 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 Dfalse_no_coercion.phpt6 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 Dbug72668.phpt8 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 Dsession_write_close_variation4.phpt16 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 D030.phpt9 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

Completed in 32 milliseconds

12345678910>>...198