Home
last modified time | relevance | path

Searched refs:test (Results 51 – 75 of 4507) sorted by relevance

12345678910>>...181

/PHP-5.5/ext/spl/tests/
H A Darray_003.phpt6 // This test also needs to exclude the protected and private variables
10 class test
22 $test = new test;
23 $test->dyn = "dynamic";
25 print_r($test);
27 $object = new ArrayObject($test);
31 foreach($test as $key => $val)
40 test Object
44 [pri:test:private] => private
50 [storage:ArrayObject:private] => test Object
[all …]
H A DCallbackFilterIteratorTest.phpt7 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) {
31 'static method (2)' => function() { return 'B::test'; },
32 'function' => function() { return 'test'; },
36 foreach($tests as $name => $test) {
38 $callback = $test();
48 // same test, with no reference to callback
[all …]
H A Dobserver_006.phpt8 public $test = 25;
12 $this->test = $test;
93 ["test"]=>
103 ["test"]=>
125 ["test"]=>
135 ["test"]=>
153 ["test"]=>
163 ["test"]=>
173 ["test"]=>
197 ["test"]=>
[all …]
H A Darray_007.phpt6 // This test also needs to exclude the protected and private variables
10 class test implements IteratorAggregate
28 $test = new test;
29 $test->dyn = "dynamic";
31 print_r($test);
33 print_r($test->getIterator());
35 foreach($test as $key => $val)
44 test Object
48 [pri:test:private] => private
56 [storage:ArrayObject:private] => test Object
[all …]
H A DRecursiveCallbackFilterIteratorTest.phpt7 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 …]
H A DDirectoryIterator_getExtension_basic.phpt2 SPL: DirectoryIterator::getExtension() basic test
14 $files = array('test.txt', 'test.extension', 'test..', 'test.', 'test');
37 $files = array('test.txt', 'test.extension', 'test..', 'test.', 'test');
/PHP-5.5/ext/standard/tests/strings/
H A Dchop_variation5.phpt16 var_dump ( chop("chop test \t\0 ") ); /* without second Argument */
18 var_dump ( chop("chop test ", NULL) ); /* with NULL as second Argument */
30 string(9) "chop test"
31 string(12) "chop test "
32 string(17) "chop test "
33 string(17) "chop test "
34 string(9) "chop test"
35 string(10) "chop test "
36 string(9) "chop test"
37 string(9) "chop test"
[all …]
/PHP-5.5/ext/standard/tests/general_functions/
H A D007.phpt5 function test($str) {
9 echo test("");
10 echo test("a");
11 echo test("abc");
12 echo test("message digest");
13 echo test("abcdefghijklmnopqrstuvwxyz");
14 echo test("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
15 echo test("12345678901234567890123456789012345678901234567890123456789012345678901234567890");
/PHP-5.5/Zend/tests/
H A Dns_001.phpt5 namespace test\ns1;
25 $y = new \test\ns1\Foo;
27 \test\ns1\Foo::baz();
29 test\ns1\Foo
30 test\ns1\Foo
31 test\ns1\Foo
32 test\ns1\Foo
33 test\ns1\Foo
34 test\ns1\Foo
H A Dns_078.phpt5 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;
30 test\ns1\Foo
31 test\ns1\Foo
32 test\ns1\Foo2
33 test\ns1\Foo2
H A Dns_011.phpt5 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 Dns_021.phpt5 namespace test;
18 \test\foo();
19 \test\test::foo();
21 test\foo
22 test\foo
23 test\Test::foo
H A Dbug63462.phpt36 $test = new Test();
38 $test->nonExisting;
39 $test->publicProperty;
40 $test->protectedProperty;
41 $test->privateProperty;
42 isset($test->nonExisting);
43 isset($test->publicProperty);
44 isset($test->protectedProperty);
45 isset($test->privateProperty);
46 $test->nonExisting = 'value';
[all …]
/PHP-5.5/ext/json/tests/
H A Dbug61978.phpt9 public $test;
12 $this->test = '123';
18 public $test;
20 $this->test = '123';
24 'test' => $this->test,
41 string(44) "{"test":"123","me":{"test":"123","me":null}}"
43 string(44) "{"test":"123","me":{"test":"123","me":null}}"
/PHP-5.5/ext/soap/tests/bugs/
H A Dbug31695.phpt37 $old = $client->__setLocation("test://3");
52 test://0
53 test://1
54 test://2
55 test://1
56 test://3
57 test://3
58 test://1
59 test://0
60 test://1
[all …]
/PHP-5.5/ext/pdo_pgsql/tests/
H A Dcopy_from.phpt129 string(13) "test insert 0"
131 string(13) "test insert 0"
143 string(13) "test insert 1"
145 string(13) "test insert 1"
157 string(13) "test insert 2"
159 string(13) "test insert 2"
173 string(13) "test insert 0"
175 string(13) "test insert 0"
187 string(13) "test insert 1"
189 string(13) "test insert 1"
[all …]
H A Dcopy_to.phpt78 string(19) "0 test insert 0 \N
81 string(19) "1 test insert 1 \N
84 string(19) "2 test insert 2 \N
90 string(21) "0;test insert 0;NULL
93 string(21) "1;test insert 1;NULL
115 0 test insert 0 \N
116 1 test insert 1 \N
117 2 test insert 2 \N
120 0;test insert 0;NULL
121 1;test insert 1;NULL
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Duserwrapper.phpt5 class test {
25 we effectively test the stat cache mechanism */
34 stream_wrapper_register('test', 'test');
36 unlink('test://example.com/path/to/file');
37 rename('test://example.com/path/to/from', 'test://example.com/path/to/to');
40 mkdir('test://example.com/path/to/directory', 0755);
41 rmdir('test://example.com/path/to/directory');
42 print_r(stat('test://example.com/path/to/file'));
47 Unlinking file: test://example.com/path/to/file
48 Renaming test://example.com/path/to/from to test://example.com/path/to/to
[all …]
H A Ddirname_basic-win32.phpt29 'c:\test\afile',
30 'c:\\test\\afile',
31 'c://test//afile',
32 'c:\test\afile\\',
69 string(7) "c:\test"
70 string(7) "c:\test"
71 string(8) "c://test"
72 string(7) "c:\test"
83 string(15) " c:\test\adir"
84 string(12) "c:\test\adir"
[all …]
/PHP-5.5/ext/spl/examples/tests/
H A Ddualiterator_001.phpt15 function test($a, $b, $identical = false)
23 test(array(1,2,3), array(1,2,3));
24 test(array(1,2,3), array(1,2));
25 test(array(1,array(21,22),3), array(1,array(21,22),3));
26 test(array(1,array(21,22),3), array(1,array(21,22,23),3));
27 test(array(1,array(21,22),3), array(1,array(21,22,3)));
28 test(array(1,array(21,22),3), array(1,array(21),array(22),3));
29 test(array(1,2,3), array(1,"2",3), false);
30 test(array(1,2,3), array(1,"2",3), true);
31 test(array(1,array(21,22),3), array(1,array(21,"22"),3), false);
[all …]
/PHP-5.5/ext/filter/tests/
H A D045.phpt15 $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-5.5/ext/phar/tests/cache_list/files/
H A Dwrite3.phar.inc9 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-5.5/tests/classes/
H A Dprivate_members.phpt16 $this->test();
20 function test()
36 $this->test();
50 $t->test();
59 base::test
65 derived::test
72 base::test
78 base::test
84 derived::test
91 base::test
[all …]
H A Dbug63462.phpt36 $test = new Test();
38 $test->nonExisting;
39 $test->publicProperty;
40 $test->protectedProperty;
41 $test->privateProperty;
42 isset($test->nonExisting);
43 isset($test->publicProperty);
44 isset($test->protectedProperty);
45 isset($test->privateProperty);
46 $test->nonExisting = 'value';
[all …]
/PHP-5.5/ext/mysqli/tests/
H A D001.phpt13 $test = "";
15 /*** test mysqli_connect localhost:port ***/
17 $test .= ($link) ? "1" : "0";
20 /*** test mysqli_real_connect ***/
22 $test.= (my_mysqli_real_connect($link, $host, $user, $passwd, "", $port, $socket) )
26 /*** test mysqli_real_connect with db ***/
28 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))
32 /*** test mysqli_real_connect with port ***/
34 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))
49 /*** test mysqli_real_connect compressed ***/
[all …]

Completed in 104 milliseconds

12345678910>>...181