Home
last modified time | relevance | path

Searched refs:test (Results 226 – 250 of 5269) sorted by relevance

12345678910>>...211

/PHP-8.2/ext/opcache/tests/
H A Dassign_obj_exceptions.phpt11 $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-8.2/ext/soap/tests/soap12/
H A DT32.phpt11 <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";
H A DT22.phpt11 <test:echoOk xmlns:test="http://example.org/ts-tests"
12 env:mustUnderstand = "1">foo</test:echoOk>
15 <test:echoOk xmlns:test="http://example.org/ts-tests">foo</test:echoOk>
19 include "soap12-test.inc";
/PHP-8.2/Zend/tests/
H A Dclosure_027.phpt6 function test(Closure $a) {
11 test(function() { return new stdclass; });
13 test(function() { });
17 test($a);
22 test(new stdclass);
33 Fatal error: Uncaught TypeError: test(): Argument #1 ($a) must be of type Closure, stdClass given, …
35 #0 %s(%d): test(Object(stdClass))
H A Dclosure_013.phpt16 $test = new Foo;
17 $test->__invoke();
18 $test = foo();
19 $test->__invoke();
20 $test = foo()->__invoke();
H A Dcompare_002.phpt8 class test {
25 new test,
82 string(0) "" !== object(test)#3 (0) {}
99 int(1) !== object(test)#3 (0) {}
116 float(2.5) !== object(test)#3 (0) {}
133 int(0) !== object(test)#3 (0) {}
201 NULL !== object(test)#3 (0) {}
275 object(test)#3 (0) {} !== int(1)
277 object(test)#3 (0) {} !== int(0)
281 object(test)#3 (0) {} !== NULL
[all …]
H A Dobjects_017.phpt7 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 Dbug72038.phpt7 test($foo = new stdClass);
13 test($bar = 2);
19 test($baz = &$bar);
22 function test(&$param) {
28 test(): Argument #1 ($param) cannot be passed by reference
29 test(): Argument #1 ($param) cannot be passed by reference
H A Dmethod_static_var.phpt7 public static function test() {
13 Foo::test();
15 Foo::test();
17 Bar::test();
18 Bar::test();
H A Dns_042.phpt5 namespace test\ns1;
9 use test\ns1 as ns2;
10 use test as ns3;
13 echo \test\ns1\FOO;
14 echo \test\ns1\FOO;
H A Dheredoc_012.phpt5 $test = "foo";
7 test: $test
12 test: foo
/PHP-8.2/ext/standard/tests/streams/
H A Dbug61371-unix.phpt6 die('skip non windows test');
10 function test($doFclose) {
13 for($test=1;$test<=3;$test++) {
32 test(true);
33 test(false);
/PHP-8.2/sapi/cli/tests/
H A D011.phpt10 $filename = __DIR__."/011.test.php";
15 $test = "var";
17 class test {
21 echo test::$var;
34 class test
50 string(%d) "No syntax errors detected in %s011.test.php
56 Errors parsing %s011.test.php
/PHP-8.2/ext/pdo_mysql/tests/
H A Dpdo_mysql_prepare_native.phpt123 prepex(5, $db, 'DROP TABLE IF EXISTS test');
129 prepex(9, $db, 'DELETE FROM test');
161 prepex(20, $db, 'DROP TABLE IF EXISTS test');
188 $db->exec('DELETE FROM test');
205 prepex(33, $db, 'DROP TABLE IF EXISTS test');
211 prepex(37, $db, 'DELETE FROM test');
236 prepex(44, $db, 'DELETE FROM test');
273 prepex(51, $db, 'DROP TABLE IF EXISTS test');
289 prepex(57, $db, 'DELETE FROM test');
329 …$sql = "SELECT id, label FROM test WHERE id = ? AND label = (SELECT label AS 'SELECT' FROM test WH…
[all …]
/PHP-8.2/ext/pcre/tests/
H A Dpreg_match_all_edit_basic.phpt5 $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-8.2/sapi/cgi/tests/
H A D003.phpt20 $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-8.2/ext/iconv/tests/
H A Diconv_substr.phpt34 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-8.2/tests/func/
H A D010.phpt5 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-8.2/ext/phar/tests/zip/
H A D033.phpt18 $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-8.2/Zend/tests/readonly_props/
H A Dvariation.phpt42 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-8.2/ext/standard/tests/class_object/
H A Dforward_static_call_001.phpt9 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-8.2/ext/spl/tests/
H A Dbug81992b.phpt26 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-8.2/ext/ldap/tests/
H A Dldap_controls.phpt28 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-8.2/Zend/tests/traits/
H A Dstatic_003.phpt9 public static function test() {
10 return static::$test;
16 protected static $test = "Test A";
20 protected static $test = "Test B";
23 echo B::test();
/PHP-8.2/ext/pdo_sqlite/tests/
H A Dbug_42589.phpt17 $db->exec('CREATE TABLE test (field1 VARCHAR(10))');
18 $db->exec('INSERT INTO test VALUES("test")');
20 $result = $db->query('SELECT * FROM test t1 LEFT JOIN test t2 ON t1.field1 = t2.field1');
24 var_dump(!empty($meta1['table']) && $meta1['table'] == 'test');
25 var_dump(!empty($meta2['table']) && $meta2['table'] == 'test');

Completed in 35 milliseconds

12345678910>>...211