/php-src/Zend/tests/ |
H A D | closure_018.phpt | 7 public function test(&$x) { 16 $test = new foo; 19 var_dump($test->test($y)); 20 var_dump($x = $test->test($y));
|
H A D | lsb_017.phpt | 6 public static function test($x=null) { 21 echo A::test(B::test(C::test(D::test())))."\n";
|
H A D | argument_restriction_006.phpt | 6 public function test($foo, $extra = array("test")) { 11 public function test($foo, $extra) { 16 Fatal error: Declaration of Sub::test($foo, $extra) must be compatible with Base::test($foo, $extra…
|
H A D | bug47593.phpt | 6 namespace test; 21 var_dump(interface_exists('\test\baz')); 22 var_dump(function_exists('\test\bar')); 23 var_dump(constant('\test\TEST')); 24 var_dump(defined('\test\TEST'));
|
/php-src/ext/standard/tests/file/ |
H A D | stream_rfc2397_005.phpt | 12 'data:,;test', 13 'data:text/plain,test', 14 'data:text/plain;charset=US-ASCII,test', 30 string(5) ";test" 31 string(4) "test" 32 string(4) "test"
|
/php-src/ext/standard/tests/strings/ |
H A D | bug36944.phpt | 7 var_dump(strncmp("test ", "e", -1)); 11 var_dump(strncmp("test ", "e", 10)); 12 var_dump(strncmp("test ", "e", 0)); 15 var_dump(strncasecmp("test ", "E", -1)); 19 var_dump(strncasecmp("test ", "E", 10)); 20 var_dump(strncasecmp("test ", "E", 0));
|
/php-src/ext/standard/tests/ |
H A D | forward_static_call_array.phpt | 8 function test() { 17 public static function test() { 28 public static function test() { 30 forward_static_call_array(array('A', 'test'), array('more', 'args')); 31 forward_static_call_array('test', array('other', 'args')); 36 B::test('foo');
|
/php-src/ext/simplexml/tests/ |
H A D | libxml_global_state_entity_loader_bypass.phpt | 19 echo "--- String test ---\n"; 21 echo "--- Constructor test ---\n"; 23 echo "--- File test ---\n"; 35 --- String test --- 36 --- Constructor test --- 37 --- File test ---
|
/php-src/ext/pcre/tests/ |
H A D | preg_match_all_basic.phpt | 8 $string = 'Hello, world! This is a test. This is another test. \[4]. 34534 string.'; 11 …./', $string, $match2, PREG_SET_ORDER)); //finds "This is a test." and "This is another test." (no… 17 …a ){2}(.*)\stest/', $string, $match5)); //tries to find "This is aThis is a [...] test" (0 matches) 21 var_dump(preg_match_all('/test/', $string)); 45 string(15) "This is a test." 47 string(5) " test" 52 string(21) "This is another test." 54 string(11) "nother test"
|
/php-src/ext/soap/tests/soap12/ |
H A D | T57.phpt | 14 <test:DataHolder xmlns:test="http://example.org/ts-tests" 16 <test:Data enc:id="data" xsi:type="xsd:string">hello world</test:Data> 17 </test:DataHolder> 20 <test:echoString xmlns:test="http://example.org/ts-tests" 22 <test:inputString enc:ref="#data" xsi:type="xsd:string" /> 23 </test:echoString> 27 include "soap12-test.inc";
|
H A D | T23.phpt | 11 <test:Unknown xmlns:test="http://example.org/ts-tests" 12 env:mustUnderstand="1">foo</test:Unknown> 13 <test:echoOk xmlns:test="http://example.org/ts-tests" 14 env:mustUnderstand="wrong">foo</test:echoOk> 20 include "soap12-test.inc";
|
H A D | T38_1.phpt | 11 <test:Unknown xmlns:test="http://example.org/ts-tests" 13 env:role="http://example.org/ts-tests/C">foo</test:Unknown> 14 <test:echoOk xmlns:test="http://example.org/ts-tests" 16 env:role="http://example.org/ts-tests/C">foo</test:echoOk> 22 include "soap12-test.inc";
|
/php-src/ext/pdo_dblib/ |
H A D | config.m4 | 6 if test "$PHP_PDO_DBLIB" != "no"; then 8 if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then 12 if test "$PHP_PDO_DBLIB" = "yes"; then 20 elif test "$PHP_PDO_DBLIB" != "no"; then 22 if test -f $PHP_PDO_DBLIB/include/sybdb.h; then 25 elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then 32 if test "x$PHP_LIBDIR" = "x" ; then 36 …if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INS…
|
/php-src/ext/phar/tests/cache_list/files/ |
H A D | write18.phar.inc | 9 echo decoct(fileperms("phar://" . __FILE__ . "/test.txt")),"\n"; 10 $p["test.txt"]->chmod(0444); 11 echo decoct(fileperms("phar://" . __FILE__ . "/test.txt")),"\n"; 15 $phar['test.txt'] = "<?php __HALT"."_COMPILER();"; 16 $phar["test.txt"]->chmod(0666);
|
H A D | write2.phar | 4 mkdir("phar://" . __FILE__ . "/test"); 5 var_dump(is_dir("phar://" . __FILE__ . "/test")); 8 var_dump(isset($phar["test"])); 9 var_dump(isset($phar2["test"])); 12 H s:2:"hi";test.txt�A�Hzzo� s:2:"hi";hi
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionEnum_getCase.phpt | 16 function test(string $enumName, string $caseName) { 25 test(Enum_::class, 'Foo'); 26 test(Enum_::class, 'Bar'); 27 test(Enum_::class, 'Baz'); 29 test(IntEnum::class, 'Foo'); 30 test(IntEnum::class, 'Bar'); 31 test(IntEnum::class, 'Baz');
|
/php-src/ext/phar/tests/ |
H A D | bug77022.phpt | 20 $phar->addFile($sFile, 'test-file-phar'); 21 $phar->addFromString("test-from-string", 'test-file-phar'); 23 var_dump(decoct(stat(__DIR__ . '/test-file-phar')['mode'])); 24 var_dump(decoct(stat(__DIR__ . '/test-from-string')['mode'])); 25 unlink(__DIR__ . '/test-file-phar'); 26 unlink(__DIR__ . '/test-from-string');
|
/php-src/ext/dom/tests/delayed_freeing/ |
H A D | entity_reference.phpt | 21 <!ENTITY test "entity is only for test purposes"> 25 $entityRef = $doc->documentElement->appendChild($doc->createEntityReference('test')); 43 <!ENTITY test "entity is only for test purposes"> 45 <div>&test;</div> 47 string(4) "test"
|
/php-src/Zend/tests/named_params/ |
H A D | unpack.phpt | 6 function test($a, $b, $c) { 14 test(...['a' => 'a', 'b' => 'b', 'c' => 'c']); 15 test(...['c' => 'c', 'b' => 'b', 'a' => 'a']); 16 test(...['a', 'b' => 'b', 'c' => 'c']); 19 test(...['a', 'b' => 'b', 'c']); 25 test(...['a', 'a' => 'a']); 35 test(...new ArrayIterator(['a' => 'a', 'b' => 'b', 'c' => 'c'])); 36 test(...new ArrayIterator(['c' => 'c', 'b' => 'b', 'a' => 'a'])); 37 test(...new ArrayIterator(['a', 'b' => 'b', 'c' => 'c'])); 40 test(...new ArrayIterator(['a', 'b' => 'b', 'c'])); [all …]
|
/php-src/ext/dom/tests/ |
H A D | bug80332_1.phpt | 17 function test($span, $key) { 30 test($span, 0); 31 test($span, false); 32 test($span, true); 33 test($span, null); 34 test($span, 'attr2'); 36 test($span, 'hi'); 37 test($span, '0'); 38 test($span, '0.5'); 39 test($span, '1'); [all …]
|
/php-src/ext/sqlite3/tests/ |
H A D | sqlite3_bind_bug68849.phpt | 10 $db->exec("CREATE TABLE test (a INTEGER, b TEXT, c REAL);" . 11 "INSERT INTO test VALUES (1, 'hello', 3.14);" . 12 "INSERT INTO test VALUES (3, 'world', 3.15);" . 13 "INSERT INTO test VALUES (0, '42', 0.42);" 16 $s = $db->prepare('SELECT * FROM test WHERE (a+2) = ?;'); 21 $s = $db->prepare('SELECT * FROM test WHERE a = ?;'); 26 $s = $db->prepare('SELECT * FROM test WHERE a = ?;'); 31 $s = $db->prepare('SELECT * FROM test WHERE c = ?;');
|
/php-src/ext/gd/tests/ |
H A D | jpg2gd-mb.phpt | 2 jpeg <--> gd1/gd2 conversion test 8 die("skip test requires GD 2.3.2 or older"); 20 …echo imagegd(imagecreatefromjpeg($cwd . "/conv_test私はガラスを食べられます.jpg"), $cwd . "/test私はガラスを食べられます.g… 24 …echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test私はガラスを食べられます.jpg"), $cwd . "/test私はガラスを食べられます.… 28 …echo imagejpeg(imagecreatefromgd($cwd . "/test私はガラスを食べられます.gd1"), $cwd . "/test_gd1.jpeg") ? 'ok' … 32 …echo imagejpeg(imagecreatefromgd2($cwd . "/test私はガラスを食べられます.gd2"), $cwd . "/test_gd2.jpeg") ? 'ok'… 35 @unlink($cwd . "/test私はガラスを食べられます.gd1"); 36 @unlink($cwd . "/test私はガラスを食べられます.gd2");
|
/php-src/ext/pdo_pgsql/tests/ |
H A D | copy_from.phpt | 145 string(13) "test insert 0" 147 string(13) "test insert 0" 159 string(13) "test insert 1" 161 string(13) "test insert 1" 173 string(13) "test insert 2" 175 string(13) "test insert 2" 189 string(13) "test insert 0" 191 string(13) "test insert 0" 203 string(13) "test insert 1" 205 string(13) "test insert 1" [all …]
|
/php-src/ext/hash/tests/ |
H A D | joaat.phpt | 16 foreach ($tests as $test) { 19 $result = hash("joaat", $test[0]); 20 if ($result != $test[1]) { 21 …echo "Iteration " . $i . " failed - expected '" . $test[1] . "', got '" . $result . "' for '" . $t…
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_071.phpt | 10 $test = new Test; 11 var_dump($test); 13 $test->x = &$y; 14 var_dump($y, $test); 18 var_dump($y, $z, $test);
|