Home
last modified time | relevance | path

Searched refs:test (Results 201 – 225 of 4950) sorted by relevance

12345678910>>...198

/php-src/tests/lang/
H A Dbug27439.phpt12 class test {
57 $test = new test();
58 $test->case1();
59 $test->case2();
60 $test->case3();
61 $test->case4();
62 $test->case5();
63 $test->case6();
69 Warning: Undefined property: test::$foobar in %s on line %d
H A Dbug73172.inc3 function test($a, $x, $y){
6 test('test', 9223372036854775808, 'test');
/php-src/ext/opcache/tests/opt/
H A Dnullsafe_002.phpt16 function test(?Test $test) {
17 var_dump($test?->prop);
32 test:
37 ; #0.CV0($test) NOVAL [undef]
43 0000 #1.CV0($test) [null, object (instanceof Test)] = RECV 1
45 0002 #2.T1 [null] = JMP_NULL #1.CV0($test) [null, object (instanceof Test)] BB2
53 …#3.CV0($test) [object (instanceof Test)] = Pi<BB0>(#1.CV0($test) [null, object (instanceof Test)] …
54 0003 #4.T1 [long] = FETCH_OBJ_R #3.CV0($test) [object (instanceof Test)] string("prop")
/php-src/Zend/tests/readonly_props/
H A Dmagic_get_set.phpt32 $test = new Test;
35 var_dump(isset($test->prop));
37 var_dump($test->prop);
42 $test->prop = 1;
47 unset($test->prop);
52 $test->unsetProp();
54 var_dump(isset($test->prop));
55 var_dump($test->prop);
56 $test->prop = 2;
58 unset($test->prop);
/php-src/ext/zip/tests/
H A Dbug80833.phpt14 $create_zip->addFromString("test.txt", "This is a test string.");
15 $create_zip->setEncryptionName("test.txt", ZipArchive::EM_AES_256, "first_password");
16 $create_zip->addFromString("test2.txt", "This is another test string.");
27 var_dump(file_get_contents("zip://" . __DIR__ . "/80833.zip#test.txt", false, $c));
33 $file_stream = $extract_zip->getStream("test.txt");
43 $file_stream = $extract_zip->getStream("test.txt");
53 string(22) "This is a test string."
54 string(22) "This is a test string."
55 string(28) "This is another test string."
/php-src/tests/security/
H A Dopen_basedir_tempnam.phpt11 var_dump(tempnam("../bad", "test"));
12 var_dump(tempnam("..", "test"));
13 var_dump(tempnam("../", "test"));
14 var_dump(tempnam("/", "test"));
16 var_dump(tempnam("./../.", "test"));
17 var_dump(tempnam("", "test"));
19 //absolute test
20 $file = tempnam($initdir."/test/ok", "test");
24 //relative test
25 $file = tempnam(".", "test");
[all …]
/php-src/ext/opcache/tests/
H A Dbug77691.phpt14 function test() {
16 dump($array[] = 'test');
20 test();
24 string(4) "test"
27 string(4) "test"
/php-src/Zend/tests/
H A Dbug74340.phpt20 $test = new Test;
21 $test->test;
25 __get test
27 Warning: Undefined property: Test::$test in %s on line %d
30 Warning: Undefined property: Test::$test in %s on line %d
H A Dheredoc_003.phpt2 simple variable replacement test (heredoc)
9 This is heredoc test #$a.
14 This is heredoc test #$b.
22 This is heredoc test #1.
23 This is heredoc test #2.
H A Dheredoc_004.phpt2 braces variable replacement test (heredoc)
9 This is heredoc test #{$a}.
14 This is heredoc test #{$b}.
22 This is heredoc test #1.
23 This is heredoc test #2.
H A Dnowdoc_003.phpt2 simple variable replacement test (nowdoc)
9 This is nowdoc test #$a.
14 This is nowdoc test #$b.
22 This is nowdoc test #$a.
23 This is nowdoc test #$b.
H A Dnowdoc_004.phpt2 braces variable replacement test (nowdoc)
9 This is nowdoc test #{$a}.
14 This is nowdoc test #{$b}.
22 This is nowdoc test #{$a}.
23 This is nowdoc test #{$b}.
H A Dcompare_002.phpt8 class test {
25 new test,
82 string(0) "" !== object(test)#3 (0) {}
99 int(1) !== object(test)#3 (0) {}
116 float(2.5) !== object(test)#3 (0) {}
133 int(0) !== object(test)#3 (0) {}
201 NULL !== object(test)#3 (0) {}
275 object(test)#3 (0) {} !== int(1)
277 object(test)#3 (0) {} !== int(0)
281 object(test)#3 (0) {} !== NULL
[all …]
/php-src/ext/simplexml/tests/
H A Dbug39760.phpt9 <test>
14 </test>';
15 $test = simplexml_load_string($xml);
17 var_dump($test->level1->level2a);
19 $test2 = clone $test;
22 $test3 = clone $test->level1->level2a;
/php-src/ext/standard/tests/strings/
H A Dstrrev_variation2.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 Dstripos.phpt2 stripos() function test
5 var_dump(stripos("test string", "TEST"));
6 var_dump(stripos("test string", "strIng"));
7 var_dump(stripos("test string", "stRin"));
8 var_dump(stripos("test string", "t S"));
9 var_dump(stripos("test string", "G"));
11 var_dump(stripos("tEst", "test"));
12 var_dump(stripos("teSt", "test"));
/php-src/ext/standard/tests/file/
H A Dinclude_streams.phpt106 die("test wrapper registration failed");
109 echo file_get_contents("test://GLOBALS/data1");
110 include("test://GLOBALS/data1");
111 include_once("test://GLOBALS/data2");
112 include_once("test://GLOBALS/data2");
127 test://GLOBALS/data1
128 test://GLOBALS/data2
130 test://GLOBALS/data3
131 test://GLOBALS/data4
133 test://GLOBALS/data5
[all …]
H A Dpathinfo_basic1-win32.phpt149 string(7) "c:\test"
155 string(7) "c:\test"
162 string(7) "c:\test"
168 string(7) "c:\test"
227 string(7) "c:\test"
240 string(7) "c:\test"
253 string(8) "c://test"
266 string(7) "c:\test"
279 string(7) "c:\test"
294 string(7) "c:\test"
[all …]
/php-src/Zend/tests/gh10168/
H A Dassign_static_untyped_prop_with_prop_ref.phpt7 static $test;
11 Test::$test = null;
15 Test::$test = new Test;
16 Test::$test2 = &Test::$test;
17 var_dump(Test::$test = new Test);
H A Dassign_static_prop_with_prop_ref.phpt7 static ?Test $test;
11 Test::$test = null;
15 Test::$test = new Test;
16 Test::$test2 = &Test::$test;
17 var_dump(Test::$test = new Test);
H A Dassign_static_untyped_prop_ref_with_prop_ref.phpt7 static $test;
11 Test::$test = null;
15 Test::$test = new Test;
16 Test::$test2 = &Test::$test;
18 var_dump(Test::$test = &$tmp);
/php-src/sapi/cgi/tests/
H A D006.phpt14 $filename = __DIR__."/006.test.php";
19 $test = "var";
21 class test {
25 echo test::$var;
38 class test
58 string(%d) "No syntax errors detected in %s006.test.php
63 <b>Parse error</b>: %s expecting %s{%s in <b>%s006.test.php</b> on line <b>5</b><br />
64 Errors parsing %s006.test.php
/php-src/ext/phar/tests/tar/
H A D033.phpt17 $phar->addEmptyDir('test');
26 echo "test dir\n";
27 var_dump($phar['test']->isReadable());
28 $phar['test']->chmod(0000);
29 var_dump($phar['test']->isReadable());
30 $phar['test']->chmod(0666);
31 var_dump($phar['test']->isReadable());
45 test dir
/php-src/ext/reflection/tests/
H A Dbug46064_2.phpt11 $x->test = 2000;
15 var_dump($p->getProperty('test'));
25 class test extends bar {
38 new test;
44 string(4) "test"
52 string(4) "test"
65 string(4) "test"
72 string(4) "test"
/php-src/Zend/tests/traits/
H A Derror_010.phpt7 public function test() { return 3; }
10 public function test() { return 2; }
14 use foo, c { c::test insteadof foo; }
15 use foo, c { c::test insteadof foo; }
19 var_dump($x->test());
23 Fatal error: Failed to evaluate a trait precedence (test). Method of trait foo was defined to be ex…

Completed in 25 milliseconds

12345678910>>...198