Home
last modified time | relevance | path

Searched refs:test (Results 126 – 150 of 4950) sorted by relevance

12345678910>>...198

/php-src/ext/standard/tests/strings/
H A Dstr_contains.phpt5 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 Drtrim.phpt9 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 Dstrripos.phpt5 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 Dstrrpos.phpt5 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 Dfilter_callback_require_scalar.phpt7 function test($var) {
13 var_dump(test('test'));
14 var_dump(test(['test']));
17 string(4) "test"
/php-src/sapi/cli/tests/
H A D007.phpt15 $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 Dsetheaders.phpt7 $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 Derror_011.phpt7 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 Derror_reporting05.phpt8 class test {
17 $test = new test;
19 $test->abc = 123;
20 echo $test->bcd;
22 @$test->qwe = 123;
23 echo @$test->wer;
H A Dclosure_016.phpt16 $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 Dobjects_024.phpt19 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 Dlsb_005.phpt7 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 Dbug53826.phpt11 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 DDOMXPath_constructor_registered_functions.phpt20 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 D002.phpt41 ["test"]=>
78 ["test"]=>
102 ["test"]=>
109 ["test"]=>
162 ["test"]=>
173 ["test"]=>
197 ["test"]=>
238 ["test"]=>
255 ["test"]=>
279 ["test"]=>
[all …]
H A Dbug76713.phpt6 function test($obj) {
14 test($obj);
15 test($obj);
16 test($obj);
31 test($obj);
32 test($obj);
33 test($obj);
/php-src/ext/ldap/
H A Dconfig.m42 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…
75test -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 Ddnf_intersection_and_null.phpt26 $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 D031.phpt9 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 Dprivate_redeclare.phpt9 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 Dtyped_properties_074.phpt15 $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 Dobserver_004.phpt8 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 Dreadonly_modification.phpt19 $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 Dbug73962.phpt6 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 Dwatch_007.phpt6 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();

Completed in 42 milliseconds

12345678910>>...198