/php-src/ext/gd/tests/ |
H A D | bug53504.phpt | 24 // Kerning examples (unfortunately not available in "Tuffy" test font): 52 // "Big" test: 56 foreach ($tests as $testnum => $test) { 57 $bbox = imageftbbox($test['fontSize'], $test['angle'], $font, $test['text']); 60 $exp = $test['exp'][$i]; 69 $bboxDrawn = imagefttext($g, $test['fontSize'], $test['angle'], 70 $test['x'], $test['y'], $black, $font, $test['text']); 74 if ($bbox[$i] + $test['x'] !== $bboxDrawn[$i]) echo "imageftbbox and imagefttext differ!\n"; 83 imageline($g, $test['x'], $test['y'], 84 $test['x'] + (int)($width * cos(deg2rad($test['angle']))), [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | str_contains.phpt | 5 var_dump(str_contains("test string", "test")); 6 var_dump(str_contains("test string", "string")); 7 var_dump(str_contains("test string", "strin")); 8 var_dump(str_contains("test string", "t s")); 9 var_dump(str_contains("test string", "g")); 11 var_dump(str_contains("tEst", "test")); 12 var_dump(str_contains("teSt", "test"));
|
H A D | rtrim.phpt | 9 var_dump ( rtrim("rtrim test \t\0 ") ); /* without second Argument */ 10 …var_dump ( rtrim("rtrim test " , "") ); /* no characters in second Argumen… 11 …var_dump ( rtrim("rtrim test ", true) ); /* with boolean value as second Ar… 46 string(10) "rtrim test" 47 string(13) "rtrim test " 48 string(18) "rtrim test " 49 string(10) "rtrim test" 50 string(11) "rtrim test " 51 string(10) "rtrim test" 52 string(10) "rtrim test" [all …]
|
H A D | strripos.phpt | 5 var_dump(strripos("test test string", "test")); 6 var_dump(strripos("test string sTring", "string")); 7 var_dump(strripos("test strip string strand", "str")); 9 var_dump(strripos("test string", "g")); 11 var_dump(strripos("tEst", "test")); 12 var_dump(strripos("teSt", "test"));
|
H A D | strrpos.phpt | 5 var_dump(strrpos("test test string", "test")); 6 var_dump(strrpos("test string sTring", "string")); 7 var_dump(strrpos("test strip string strand", "str")); 9 var_dump(strrpos("test string", "g")); 11 var_dump(strrpos("tEst", "test")); 12 var_dump(strrpos("teSt", "test"));
|
/php-src/ext/filter/tests/ |
H A D | filter_callback_require_scalar.phpt | 7 function test($var) { 13 var_dump(test('test')); 14 var_dump(test(['test'])); 17 string(4) "test"
|
/php-src/sapi/cli/tests/ |
H A D | 007.phpt | 15 $filename = __DIR__.'/007.test.php'; 18 /* some test script */ 20 class test { /* {{{ */ 21 public $var = "test"; //test var 37 var_dump(`echo "<?php /* comment */ class test {\n // comment \n function foo() {} } ?>" | $php -n … 46 class test { public $var = "test"; private $pri; function foo() { } } ?> 50 string(43) "<?php class test { function foo() {} } ?>
|
/php-src/ext/soap/tests/ |
H A D | setheaders.phpt | 7 $client = new SoapClient(NULL, array("location"=>"test://","uri"=>"test://", 9 $client->test(); 11 $client->__setSoapHeaders(new SoapHeader("test://","HDR1")); 12 $client->test(); 14 $client->test(); 17 $client->test(); 19 $client->__setSoapHeaders(array(new SoapHeader("test://","HDR1"),new SoapHeader("test://","HDR2"))); 20 $client->test(); 22 $h = array(new SoapHeader("test://","HDR0")); 23 $client->__soapCall("test", array(), null, $h); [all …]
|
/php-src/Zend/tests/traits/ |
H A D | error_011.phpt | 7 public function test() { return 3; } 10 public function test() { return 2; } 14 public function test() { return 1; } 22 var_dump($x->test()); 26 Fatal error: Trait method c::test has not been applied as bar::test, because of collision with foo:…
|
/php-src/Zend/tests/ |
H A D | error_reporting05.phpt | 8 class test { 17 $test = new test; 19 $test->abc = 123; 20 echo $test->bcd; 22 @$test->qwe = 123; 23 echo @$test->wer;
|
H A D | closure_016.phpt | 16 $test = new Foo; 17 var_dump(is_callable($test, true, $name)); 19 var_dump(is_callable($test, false, $name)); 21 var_dump(is_callable(array($test,"__invoke"), true, $name)); 23 var_dump(is_callable(array($test,"__invoke"), false, $name)); 25 $test = foo(); 26 var_dump(is_callable($test, true, $name)); 28 var_dump(is_callable($test, false, $name)); 30 var_dump(is_callable(array($test,"__invoke"), true, $name)); 32 var_dump(is_callable(array($test,"__invoke"), false, $name));
|
H A D | objects_024.phpt | 19 function test() { 23 $a = test()->bar = 1; 24 var_dump($a, count(foo::$bar), test()->whatever); 28 $a = test()->bar = NULL; 29 var_dump($a, count(foo::$bar), test()->whatever); 33 $a = test()->bar = test(); 34 var_dump($a, count(foo::$bar), test()->whatever);
|
H A D | lsb_005.phpt | 7 public static function test() { 9 TestB::test(); 11 TestC::test(); 13 TestBB::test(); 19 public static function test() { 21 TestC::test(); 27 public static function test() { 35 TestA::test();
|
H A D | bug53826.phpt | 11 class A2 { // A1 with private function test 14 private function test() {} 18 public function test(){ parent::test(); } 22 public function test(){ parent::test(); } 27 $test1->test(); 28 $test2->test();
|
/php-src/ext/dom/tests/ |
H A D | DOMXPath_constructor_registered_functions.phpt | 20 public function test() { 21 echo "test\n"; 29 $xpath->registerPhpFunctionNS('urn:foo', 'test', [new Test, 'test']); 38 $xpath->query('//*[foo:test()]'); 39 $xpath->registerPhpFunctionNS('urn:foo', 'test', [new Test, 'test']); 40 $xpath->query('//*[foo:test()]'); 49 Warning: DOMXPath::query(): xmlXPathCompOpEval: function test not found in %s on line %d 52 test
|
/php-src/ext/standard/tests/array/ |
H A D | 002.phpt | 41 ["test"]=> 78 ["test"]=> 102 ["test"]=> 109 ["test"]=> 162 ["test"]=> 173 ["test"]=> 197 ["test"]=> 238 ["test"]=> 255 ["test"]=> 279 ["test"]=> [all …]
|
/php-src/ext/ldap/ |
H A D | config.m4 | 2 if test -f $1/include/ldap.h; then 6 elif test -f $1/ldap/public/ldap.h; then 16 AS_IF([test "$ac_cv_sizeof_long" -eq 4],[ 27 if test -f $OCISDKRPMINC/ldap.h; then 32 elif test -f $1/sdk/include/ldap.h; then 52 if test "$PHP_LDAP" != "no"; then 56 if test "$PHP_LDAP" = "yes"; then 64 if test -z "$LDAP_DIR"; then 71 …if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME || test -f $L… 75 …test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME… [all …]
|
/php-src/Zend/tests/type_declarations/dnf_types/ |
H A D | dnf_intersection_and_null.phpt | 26 $test = new Test(); 30 $test->foo1($a); 31 $test->foo2($a); 32 $test->foo1($n); 33 $test->foo2($n); 34 $test->prop1 = $a; 35 $test->prop1 = $n; 36 $test->prop2 = $a; 37 $test->prop2 = $n; 41 $test->foo1($c); [all …]
|
/php-src/ext/simplexml/tests/ |
H A D | 031.phpt | 9 xmlns:s="urn::test" xmlns:t="urn::test-t"> 10 <child1>test</child1> 11 <child1>test 2</child1> 19 $sxe->addAttribute('v:att11', 'xxx', 'urn::test-v'); 22 $sxe->addAttribute('v:att11', 'xxx', 'urn::test-v'); 29 $d->addChild('m:test', 'myval', 'urn::test'); 33 $sxe->addChild('m:test1', 'myval', 'urn::test'); 35 /* New namespace test */ 51 <root xmlns:s="urn::test" xmlns:t="urn::test-t" xmlns:v="urn::test-v" s:att1="b" att1="a" v:att11="… 52 <child1>test</child1> [all …]
|
/php-src/tests/classes/ |
H A D | private_redeclare.phpt | 9 function test() { 15 $t->test(); 21 function test() { 22 echo "test\n"; 24 parent::test(); 30 $t->test(); 34 test 40 #0 %s(%d): derived->test()
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_074.phpt | 15 $test = new Test; 16 $dummyRef = &$test->prop; 17 unset($test->val); 18 var_dump($test); 20 var_dump($test->val); 22 var_dump($test); 24 $test->prop = "y"; 25 var_dump($test->prop);
|
/php-src/ext/spl/tests/ |
H A D | observer_004.phpt | 8 public $test = 25; 10 public function __construct($test = 42) 12 $this->test = $test; 37 var_dump($object->test); 51 var_dump($object->test); 70 ["test"]=> 80 ["test"]=> 102 ["test"]=> 112 ["test"]=>
|
/php-src/Zend/tests/readonly_props/ |
H A D | readonly_modification.phpt | 19 $test = new Test; 20 var_dump($test->prop); // Read. 22 $test->prop = 2; 27 $test->prop += 1; 32 $test->prop++; 37 ++$test->prop; 42 $ref =& $test->prop; 47 $test->prop =& $ref; 52 byRef($test->prop); 59 $test->prop2[] = 1; [all …]
|
/php-src/ext/standard/tests/file/windows_links/ |
H A D | bug73962.phpt | 6 die('skip windows only test'); 16 $dirname = '"' . __DIR__ . "\\mnt\\test\\новая папка" . '"'; 18 chdir(__DIR__ . "\\mnt\\test"); 28 var_dump(scandir("$fullpath\\mnt\\test\\новая папка")); 29 var_dump(scandir("$fullpath\\mnt\\test\\mklink_symlink")); 30 var_dump(is_readable("$fullpath\\mnt\\test\\mklink_symlink\b.php")); 31 unlink("$fullpath\\mnt\\test\\новая папка\\b.php"); 34 rmdir(__DIR__ . "\\mnt\\test\\новая папка"); 35 rmdir(__DIR__ . "\\mnt\\test\\mklink_symlink"); 36 rmdir(__DIR__ . "\\mnt\\test\\mounted_volume"); [all …]
|
/php-src/sapi/phpdbg/tests/ |
H A D | watch_007.phpt | 6 b test 12 prompt> [Breakpoint #0 added at test] 13 prompt> [Breakpoint #0 in test() at %s:%d, hits: 1] 15 00005: test(); 22 function test() { 24 test();
|