Home
last modified time | relevance | path

Searched refs:test (Results 151 – 175 of 4950) sorted by relevance

12345678910>>...198

/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_073.phpt15 $test = new Test;
16 unset($test->val);
17 var_dump($test);
18 var_dump($val = &$test->val);
19 var_dump($test);
21 $test->prop = "x";
22 var_dump($test, $val);
H A Dtyped_properties_class_loading.phpt15 $test = new Test;
17 $test->propX = new stdClass;
26 $test->propX = new X;
27 var_dump($test->propX);
29 $test->propY = null;
30 $r =& $test->propY;
32 $test->propY = new stdClass;
42 var_dump($test->propY);
/php-src/ext/dom/tests/
H A DDOM4_ChildNode_wrong_document.phpt9 function test($method) {
11 $dom1->loadXML('<test/>');
14 $dom2->loadXML('<test><foo /></test>');
26 test("after");
27 test("before");
28 test("replaceWith");
/php-src/ext/simplexml/tests/
H A D000.phpt10 function test($what)
20 test('sxe');
21 test('sxe->elem1');
22 test('sxe->elem1[0]');
27 test('sxe->elem1[1]');
28 test('sxe->elem1[2]');
29 test('sxe->elem11');
32 test('sxe->elem22');
102 ["test"]=>
137 ["test"]=>
[all …]
/php-src/sapi/cgi/tests/
H A D012.phpt27 $filename_good = __DIR__."/012_good.test.php";
29 $filename_bad = __DIR__."/012_bad.test.php";
43 class test
69 [0] => No syntax errors detected in %s012_good.test.php
70 [1] => No syntax errors detected in %s012_good.test.php
84 [3] => Errors parsing %s012_bad.test.php
92 [2] => Errors parsing %s012_bad.test.php
95 [5] => Errors parsing %s012_bad.test.php
102 [2] => Errors parsing %s012_bad.test.php
110 [2] => Errors parsing %s012_bad.test.php
[all …]
/php-src/ext/standard/tests/file/
H A Dpathinfo_basic2.phpt18 'c:\test\adir\afile..txt',
20 'c:\test\adir\afile.',
24 '..\.\..\test\afile.txt',
25 '.././../test/afile',
98 string(19) "c:\test\adir\afile."
126 string(19) "c:\test\adir\afile."
128 string(18) "c:\test\adir\afile"
137 string(18) "c:\test\adir\afile"
186 string(18) "..\.\..\test\afile"
198 string(12) ".././../test"
[all …]
/php-src/sapi/fpm/fpm/
H A Dfpm_log.c116 int token, test; in fpm_log_write() local
133 test = 0; in fpm_log_write()
135 test = 1; in fpm_log_write()
140 if (!test) { in fpm_log_write()
213 if (!test) { in fpm_log_write()
254 if (!test) { in fpm_log_write()
262 if (!test) { in fpm_log_write()
268 if (!test) { in fpm_log_write()
274 if (!test) { in fpm_log_write()
466 if (!test) { in fpm_log_write()
[all …]
/php-src/ext/dba/tests/
H A Ddba_inifile_creation_matrix.phpt59 This is a test insert
61 This is a test insert
63 This is a test insert
65 This is a test insert
67 This is a test insert
69 This is a test insert
71 This is a test insert
73 This is a test insert
92 This is a test insert
94 This is a test insert
[all …]
/php-src/ext/soap/tests/bugs/
H A Dbug30106.phpt11 "schema"=>"<xsd:schema><element name=\"test\" type=\"xsd:string\"/></xsd:schema>",
12 "any"=>"<test>Hello World!</test><test>Bye World!</test>"));
65 …Result><xsd:schema><element name="test" type="xsd:string"/></xsd:schema><test>Hello World!</test><
70 string(65) "<xsd:schema><element name="test" type="xsd:string"/></xsd:schema>"
72 string(48) "<test>Hello World!</test><test>Bye World!</test>"
H A Dbug41097.phpt7 function test($soap, $array) {
8 $soap->test($array);
13 $soap = new SoapClient(null, array('uri' => 'http://uri/', 'location' => 'test://', 'exceptions' =>…
14 test($soap, array('Foo', 'Bar'));
15 test($soap, array(5 => 'Foo', 10 => 'Bar'));
16 test($soap, array('5' => 'Foo', '10' => 'Bar'));
17 $soap->test(new SoapVar(array('Foo', 'Bar'), APACHE_MAP));
19 $soap->test(new SoapVar(array('Foo', 'Bar'), SOAP_ENC_ARRAY));
/php-src/Zend/tests/type_declarations/union_types/
H A Dprop_ref_assign.phpt11 $test = new Test;
13 $test->x =& $r;
14 $test->y =& $r;
32 unset($r, $test->x, $test->y);
34 $test->x = 42;
36 $test->y =& $test->x;
41 unset($test->x, $test->y);
43 $test->y = 42.0;
45 $test->x =& $test->y;
/php-src/ext/standard/tests/file/windows_links/
H A Dbug48746_2.phpt8 die('skip windows only test');
18 $dirname = __DIR__ . "\\mnt\\test\\directory";
20 chdir(__DIR__ . "\\mnt\\test");
28 file_put_contents("$fullpath\\mnt\\test\\directory\\b.php", "<?php echo \"I am included.\n\" ?>");
30 print_r(scandir("$fullpath\\mnt\\test\\directory"));
31 print_r(scandir("$fullpath\\mnt\\test\\mklink_junction"));
32 unlink("$fullpath\\mnt\\test\\directory\\b.php");
35 rmdir(__DIR__ . "\\mnt\\test\\directory");
36 rmdir(__DIR__ . "\\mnt\\test\\mklink_junction");
37 rmdir(__DIR__ . "\\mnt\\test\\mounted_volume");
[all …]
/php-src/Zend/tests/type_declarations/literal_types/
H A Dtrue_no_coercion.phpt6 function test(true $v) { var_dump($v); }
9 test(1);
14 test('1');
19 test([1]);
24 test(new stdClass());
31 test(): Argument #1 ($v) must be of type true, int given, called in %s on line %d
32 test(): Argument #1 ($v) must be of type true, string given, called in %s on line %d
33 test(): Argument #1 ($v) must be of type true, array given, called in %s on line %d
34 test(): Argument #1 ($v) must be of type true, stdClass given, called in %s on line %d
/php-src/ext/soap/tests/soap12/
H A DT74.phpt11 <test:echoOk xmlns:test="http://example.org/ts-tests"
12 env:role="http://www.w3.org/2003/05/soap-envelope/role/next">foo</test:echoOk>
13 <test:Unknown xmlns:test="http://example.org/ts-tests">
14 <test:raiseFault env:mustUnderstand="1"
16 </test:raiseFault>
17 </test:Unknown>
23 include "soap12-test.inc";
/php-src/ext/spl/tests/
H A DDirectoryIterator_getExtension_basic.phpt2 SPL: DirectoryIterator::getExtension() basic test
8 die('Failed to create test directory');
11 $files = array('test.txt', 'test.extension', 'test');
34 $files = array('test.txt', 'test.extension', 'test');
/php-src/ext/standard/tests/class_object/
H A Dforward_static_call_003.phpt9 public static function test() {
18 public static function test() {
20 forward_static_call(array('parent', 'test'));
28 public static function test() {
30 forward_static_call(array('B', 'test'));
34 A::test();
36 B::test();
38 C::test();
H A Dget_object_vars_basic_001.phpt8 public static function test($b) {
20 public static function test($b) {
29 public static function test($b) {
47 B::test($b);
49 C::test($b);
51 A::test($b);
53 X::test($b);
63 B::test
76 C::test
85 A::test
[all …]
/php-src/ext/phar/tests/files/
H A Dinclude_path.phar.inc2 // test advanced example
7 $phar2['test/file1.php'] = 'test/file1.php
9 $phar['hello/test.php'] = '<?php
14 include 'phar://' . __FILE__ . '/hello/test.php';
15 …lude_path('.' . PATH_SEPARATOR . 'phar://' . dirname(__FILE__) . '/files/include_path2.phar/test');
16 include 'phar://' . __FILE__ . '/hello/test.php';
/php-src/ext/opcache/tests/opt/
H A Dcoalesce.phpt15 $test = $test ?? true;
16 return $test;
20 $test ??= true;
21 return $test;
36 0000 T1 = COALESCE CV0($test) 0001
43 0000 T1 = COALESCE CV0($test) 0001
/php-src/ext/opcache/tests/jit/
H A Dmod_003.phpt16 function test1($test) {
17 $test[0] %= 3;
18 return $test;
20 function test2($test) {
21 $test->prop %= 3;
22 return $test;
/php-src/Zend/tests/traits/
H A Derror_015.phpt8 public function test() { return 3; }
12 public function test() { return 4; }
17 baz::test as zzz;
22 var_dump($x->test());
26 Fatal error: Trait method baz::test has not been applied as bar::test, because of collision with fo…
/php-src/ext/standard/tests/array/
H A Dcompact_this.phpt8 function test(){
11 })->test()
16 function test(){
19 })->test()
24 function test(){
27 })->test()
/php-src/Zend/tests/arg_unpack/
H A Dtraversable_with_by_ref_parameters.phpt6 function test($val1, $val2, $val3, &$ref) {
16 test(1, 2, 3, $b, ...gen([4, 5, 6]));
19 test(...gen([1, 2, 3, 4]));
20 test(1, 2, ...gen([3, 4]));
21 test(...gen([1, 2]), ...gen([3, 4]));
27 Warning: Cannot pass by-reference argument 4 of test() by unpacking a Traversable, passing by-value…
29 Warning: Cannot pass by-reference argument 4 of test() by unpacking a Traversable, passing by-value…
31 Warning: Cannot pass by-reference argument 4 of test() by unpacking a Traversable, passing by-value…
/php-src/ext/opcache/tests/
H A Dpreload_method_static_vars.inc3 public static function test() {
10 Foo::test();
12 Foo::test();
13 Bar::test();
14 Bar::test();
/php-src/tests/lang/
H A Dstring_decimals_001.phpt5 function test($str) {
12 test("..9");
13 test(".9.");
14 test("9..");
15 test("9.9.");
16 test("9.9.9");

Completed in 88 milliseconds

12345678910>>...198