Home
last modified time | relevance | path

Searched refs:test (Results 276 – 300 of 5093) sorted by relevance

1...<<11121314151617181920>>...204

/php-src/Zend/tests/
H A Dclosure_018.phpt7 public function test(&$x) {
16 $test = new foo;
19 var_dump($test->test($y));
20 var_dump($x = $test->test($y));
H A Dlsb_017.phpt6 public static function test($x=null) {
21 echo A::test(B::test(C::test(D::test())))."\n";
H A Dargument_restriction_006.phpt6 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 Dbug47593.phpt6 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 Dstream_rfc2397_005.phpt12 '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 Dbug36944.phpt7 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 Dforward_static_call_array.phpt8 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 Dlibxml_global_state_entity_loader_bypass.phpt19 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 Dpreg_match_all_basic.phpt8 $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 DT57.phpt14 <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 DT23.phpt11 <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 DT38_1.phpt11 <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 Dconfig.m46 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 Dwrite18.phar.inc9 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 Dwrite2.phar4 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�H���zzo��� ���s:2:"hi";hi
/php-src/ext/reflection/tests/
H A DReflectionEnum_getCase.phpt16 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 Dbug77022.phpt20 $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 Dentity_reference.phpt21 <!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 Dunpack.phpt6 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 Dbug80332_1.phpt17 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 Dsqlite3_bind_bug68849.phpt10 $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 Djpg2gd-mb.phpt2 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 Dcopy_from.phpt145 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 Djoaat.phpt16 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 Dtyped_properties_071.phpt10 $test = new Test;
11 var_dump($test);
13 $test->x = &$y;
14 var_dump($y, $test);
18 var_dump($y, $z, $test);

Completed in 35 milliseconds

1...<<11121314151617181920>>...204