/php-src/ext/standard/tests/class_object/ |
H A D | bug71442.phpt | 9 public static function test() { 19 public static function test() { 21 forward_static_call(array('A', 'test'), 'more', 'args'); 22 forward_static_call( 'test', 'other', 'args'); 26 B::test('foo'); 28 function test() {
|
H A D | forward_static_call_001.phpt | 9 public static function test() { 18 public static function test() { 20 forward_static_call(array('parent', 'test')); 25 forward_static_call(array('self', 'test')); 30 forward_static_call(array('A', 'test')); 38 public static function test() 41 forward_static_call(array('A', 'test')); 45 A::test(); 47 B::test(); 53 C::test();
|
/php-src/Zend/tests/readonly_props/ |
H A D | variation.phpt | 42 function r($test) { 43 echo $test->prop; 46 function w($test) { 47 $test->prop = 0; 51 function rw($test) { 52 $test->prop += 1; 56 function im($test) { 57 $test->prop[] = 1; 61 function is($test) { 65 function us($test) { [all …]
|
/php-src/ext/opcache/tests/ |
H A D | assign_obj_exceptions.phpt | 11 $test = new Test; 12 $test->x = ""; 15 $test = new stdClass; 16 $test->$name = null; 20 $test = new stdClass; 22 $test = null; 24 $test->x = "";
|
/php-src/ext/soap/tests/soap12/ |
H A D | T32.phpt | 11 <test:requiredHeader xmlns:test="http://example.org/ts-tests" 12 env:mustUnderstand="true">foo</test:requiredHeader> 15 <test:echoHeader xmlns:test="http://example.org/ts-tests"> 16 </test:echoHeader> 20 include "soap12-test.inc";
|
/php-src/sapi/cli/tests/ |
H A D | 011.phpt | 10 $filename = __DIR__."/011.test.php"; 16 $test = "var"; 18 class test { 22 echo test::$var; 35 class test 51 string(%d) "No syntax errors detected in %s011.test.php 57 Errors parsing %s011.test.php
|
H A D | 010.phpt | 15 $filename = __DIR__."/010.test.php"; 17 $filename_txt = __DIR__."/010.test.txt"; 29 test 39 @unlink(__DIR__."/010.test.php"); 40 @unlink(__DIR__."/010.test.txt"); 44 string(10) "test
|
/php-src/ext/standard/tests/streams/ |
H A D | bug61371-unix.phpt | 6 die('skip non windows test'); 11 function test($doFclose) { 14 for($test=1;$test<=3;$test++) { 33 test(true); 34 test(false);
|
/php-src/ext/pcre/tests/ |
H A D | preg_match_all_edit_basic.phpt | 5 $string = 'Hello, world! This is a test. This is another test. \[4]. 34534 string.'; 10 …ing, $match2, PREG_SET_ORDER)); //finds "This is a test." and "This is another test." (no… 19 …(.*)\stest/', $string, $match5)); //tries to find "This is aThis is a [...] test" (0 matches) 41 string(15) "This is a test." 43 string(5) " test" 48 string(21) "This is another test." 50 string(11) "nother test"
|
/php-src/sapi/cgi/tests/ |
H A D | 003.phpt | 20 $filename = __DIR__.'/003.test.php'; 23 /* some test script */ 25 class test { /* {{{ */ 26 public $var = "test"; //test var 42 var_dump(`echo "<?php /* comment */ class test {\n // comment \n function foo() {} } ?>" | $php -n … 54 class test { public $var = "test"; private $pri; function foo() { } } ?> 65 <?php class test { function foo() {} } ?>
|
/php-src/tests/func/ |
H A D | 010.phpt | 5 if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); 15 function test($a,$b) 37 test($v42, \'42\'); 38 test(\'4000\', $v4000); 40 test($v0, \'0\'); // first 41 test($v'.dechex($limit-1).", '".dechex($limit-1).'\'); // last 42 test($v'.dechex($boundary).", '".dechex($boundary).'\'); //boundary 43 test($v'.dechex($boundary+1).", '".dechex($boundary+1).'\'); //boundary+1 44 test($v'.dechex($boundary-1).", '".dechex($boundary-1).'\'); //boundary-1
|
/php-src/ext/iconv/tests/ |
H A D | iconv_substr.phpt | 34 bar("This is a test", 100000); 35 bar("This is a test", 0, 100000); 36 bar("This is a test", -3); 37 bar("This is a test", -3, null); 38 bar("This is a test", 0, -9); 39 bar("This is a test", 0, -100000); 40 bar("This is a test", -9, -100000); 50 string(14) "This is a test" 51 string(14) "This is a test"
|
/php-src/ext/phar/tests/zip/ |
H A D | 033.phpt | 18 $phar->addEmptyDir('test'); 30 echo "test dir\n"; 31 var_dump($phar['test']->isDir()); 32 var_dump($phar['test']->isReadable()); 33 $phar['test']->chmod(0000); 34 var_dump($phar['test']->isReadable()); 35 $phar['test']->chmod(0666); 36 var_dump($phar['test']->isReadable()); 50 test dir
|
/php-src/ext/intl/tests/ |
H A D | grapheme_str_split.phpt | 20 foreach( $tests as $test ) { 21 $res_str .= "grapheme cluster for str_split - param {$test[0]}, length {$test[1]} "; 22 $result = grapheme_str_split($test[0], $test[1]); 23 …$res_str .= dump_array_bin2hex($test[count($test)-1]) . check_result($result, $test[count($test)-1…
|
/php-src/Zend/tests/ |
H A D | closure_013.phpt | 16 $test = new Foo; 17 $test->__invoke(); 18 $test = foo(); 19 $test->__invoke(); 20 $test = foo()->__invoke();
|
H A D | bug72038.phpt | 7 test($foo = new stdClass); 13 test($bar = 2); 19 test($baz = &$bar); 22 function test(&$param) { 28 test(): Argument #1 ($param) could not be passed by reference 29 test(): Argument #1 ($param) could not be passed by reference
|
H A D | objects_017.phpt | 7 private $test = 1; 10 function test() { 14 test()->test = 2; 18 Fatal error: Uncaught Error: Cannot access private property foo::$test in %s:%d
|
H A D | ns_042.phpt | 5 namespace test\ns1; 9 use test\ns1 as ns2; 10 use test as ns3; 13 echo \test\ns1\FOO; 14 echo \test\ns1\FOO;
|
/php-src/Zend/tests/gh10168/ |
H A D | assign_static_prop_ref_with_prop_ref.phpt | 7 static ?Test $test; 11 Test::$test = null; 15 Test::$test = new Test; 16 Test::$test2 = &Test::$test; 18 var_dump(Test::$test = &$tmp);
|
/php-src/ext/ldap/tests/ |
H A D | ldap_controls.phpt | 28 ldap_modify($link, "o=test,$base", ['description' => 'desc'], 30 $result = ldap_read($link, "o=test,$base", "objectClass=*", array('description')), 32 ldap_modify($link, "o=test,$base", ['description' => 'desc2'], 34 $result = ldap_read($link, "o=test,$base", "objectClass=*", array('description')), 40 ldap_compare($link, "o=test,$base", "o", "test"), 41 …ldap_compare($link, "o=test,$base", "o", "test", [['oid' => LDAP_CONTROL_ASSERT, 'iscritical' => T… 42 …ldap_compare($link, "o=test,$base", "o", "test", [['oid' => LDAP_CONTROL_ASSERT, 'iscritical' => T… 81 string(4) "test" 88 string(%d) "o=test,%s" 112 string(%d) "o=test,%s" [all …]
|
/php-src/ext/spl/tests/ |
H A D | bug81992b.phpt | 26 function test(int $desiredSize) { 38 echo "--- Smaller size test ---\n"; 39 test(1); 40 echo "--- Equal size test ---\n"; 41 test(2); 42 echo "--- Larger size test ---\n"; 43 test(10); 46 --- Smaller size test --- 53 --- Equal size test --- 60 --- Larger size test ---
|
/php-src/ext/dom/tests/delayed_freeing/ |
H A D | gh9628_1.phpt | 9 <span id="1" xmlns:test="some:ns2"> 11 <span id="2">Test <test:test/></span> 30 // Import test 43 <span xmlns:test="some:ns2" xmlns="some:ns" id="1"> 46 <default:span xmlns:default="some:ns" xmlns:test="some:ns2" id="2">Test <test:test/></default:span>
|
/php-src/ext/odbc/ |
H A D | config.m4 | 2 if ! test -f "$ODBC_INCDIR/$1"; then 75 if test ! -f $ODBC_LIBS; then 101 if test -z "$ODBC_TYPE"; then 131 if test -z "$ODBC_TYPE"; then 152 if test -z "$ODBC_TYPE"; then 180 if test -z "$ODBC_TYPE"; then 220 if test -z "$ODBC_TYPE"; then 246 if test -z "$ODBC_TYPE"; then 288 if test -z "$ODBC_TYPE"; then 316 if test -z "$ODBC_TYPE"; then [all …]
|
/php-src/ext/dom/tests/modern/html/interactions/ |
H A D | HTMLCollection_named_reads.phpt | 10 <!ENTITY ent "test"> 16 <node test:id="foo" xmlns:test="http://example.com">3</node> 26 function test($obj, $name) { 45 test($dom->getElementsByTagName('node'), 'foo'); 46 test($dom->getElementsByTagName('node'), ''); 47 test($dom->getElementsByTagName('node'), 'does not exist'); 48 test($dom->getElementsByTagName('node'), 'wrong'); 49 test($dom->getElementsByTagName('node'), 'bar'); 50 test($dom->getElementsByTagName('x'), 'foo'); 51 test($dom->getElementsByTagName('x'), 'footest');
|
/php-src/Zend/tests/traits/ |
H A D | static_003.phpt | 9 public static function test() { 10 return static::$test; 16 protected static $test = "Test A"; 20 protected static $test = "Test B"; 23 echo B::test();
|