Home
last modified time | relevance | path

Searched refs:new (Results 76 – 100 of 5134) sorted by relevance

12345678910>>...206

/PHP-7.3/ext/standard/tests/array/
H A Darsort_object1.phpt48 1 => new for_integer_arsort(11), 2 => new for_integer_asort(66),
49 3 => new for_integer_arsort(23), 4 => new for_integer_asort(-5),
50 5 => new for_integer_arsort(0.001), 6 => new for_integer_asort(0)
55 "a" => new for_string_arsort("axx"), "b" => new for_string_asort("t"),
56 "c" => new for_string_arsort("w"), "d" => new for_string_asort("py"),
57 "e" => new for_string_arsort("apple"), "f" => new for_string_asort("Orange"),
58 "g" => new for_string_arsort("Lemon"), "h" => new for_string_asort("aPPle")
/PHP-7.3/Zend/tests/
H A Dbug76502.phpt7 "Exception(Exception())" => new Exception("outer", 0, new Exception("inner")),
8 "Error(Error())" => new Error("outer", 0, new Error("inner")),
9 "Error(Exception())" => new Error("outer", 0, new Exception("inner")),
10 "Exception(Error())" => new Exception("outer", 0, new Error("inner"))
H A Dbug71922.phpt2 Bug #71922: Crash on assert(new class{});
10 assert(0 && new class {
11 } && new class(42) extends stdclass {
19 Assertion failure: assert(0 && new class {
20 } && new class(42) extends stdclass {
H A Dinstanceof_002.phpt15 var_dump(new foo instanceof stdClass);
16 var_dump(new foo instanceof ITest);
17 var_dump(new foo instanceof IFoo);
22 var_dump(new bar instanceof stdClass);
23 var_dump(new bar instanceof ITest);
24 var_dump(new bar instanceof IFoo);
H A Dbug70685.phpt8 $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack);
9 $c = $c->bindTo(new cls);
12 $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack);
13 $c = $c->bindTo(new SplStack, 'cls');
H A Dbug73338.phpt6 try { call_user_func(new class { function __destruct () { throw new Error; } }); } catch (Error $e)…
8 set_error_handler(function() { throw new Error; });
10 try { var_dump(new stdClass, call_user_func("fail")); } catch (Error $e) {}
14 try { [new class { static function foo() {} function __destruct () { throw new Error; } }, "foo"]()…
H A Dindirect_method_call_002.phpt13 return new self;
19 var_dump((new foo())->bar()); // string(3) "foo"
20 var_dump((new foo())->baz()->x); // string(7) "testing"
21 var_dump((new foo())->baz()->baz()->bar()); // string(3) "foo"
22 var_dump((new foo())->xyz()); // NULL
23 (new foo())->www();
/PHP-7.3/ext/spl/tests/
H A Dbug54384.phpt20 $o = new IteratorIteratorTest;
30 $o = new FilterIteratorTest;
49 $o = new ParentIteratorTest;
58 $o = new LimitIteratorTest;
67 $o = new CachingIteratorTest;
85 $o = new NoRewindIteratorTest;
94 $o = new RegexIteratorTest;
112 $o = new GlobIteratorTest;
121 $o = new SplFileObjectTest;
139 $o = new AppendIteratorTest;
[all …]
H A DSplObjectStorage_getHash.phpt5 $s = new SplObjectStorage();
6 $o1 = new Stdclass;
7 $o2 = new Stdclass;
18 $s1 = new MySplObjectStorage;
26 throw new Exception("foo");
32 $s2 = new MySplObjectStorage2;
44 $s3 = new MySplObjectStorage3;
/PHP-7.3/ext/reflection/tests/
H A DReflectionClass_isUserDefined_basic.phpt8 $r1 = new ReflectionClass("stdClass");
9 $r2 = new ReflectionClass("ReflectionClass");
10 $r3 = new ReflectionClass("ReflectionProperty");
11 $r4 = new ReflectionClass("Exception");
12 $r5 = new ReflectionClass("C");
H A DReflectionClass_isInternal_basic.phpt8 $r1 = new ReflectionClass("stdClass");
9 $r2 = new ReflectionClass("ReflectionClass");
10 $r3 = new ReflectionClass("ReflectionProperty");
11 $r4 = new ReflectionClass("Exception");
12 $r5 = new ReflectionClass("C");
H A DReflectionObject_constructor_basic.phpt5 $r1 = new ReflectionObject(new stdClass);
9 $myInstance = new C;
10 $r2 = new ReflectionObject($myInstance);
13 $r3 = new ReflectionObject($r2);
H A DReflectionClass_constructor_001.phpt5 $r1 = new ReflectionClass("stdClass");
7 $myInstance = new stdClass;
8 $r2 = new ReflectionClass($myInstance);
16 $myTrickClass = new TrickClass;
17 $r3 = new ReflectionClass($myTrickClass);
/PHP-7.3/tests/classes/
H A Ddestructor_and_references.phpt11 $o1 = new test1;
12 $o2 = new test2;
13 $o3 = new test3;
14 $o4 = new test4;
22 $o = new once;
/PHP-7.3/ext/intl/tests/
H A Dformatter_get_set_symbol.phpt54 // Set a new symbol value.
66 // Check if the new value has been set.
70 // Format the number using the new value.
104 A number formatted with the new symbol: 12,345.123
114 A number formatted with the new symbol: `a,bcd.`ab
119 A number formatted with the new symbol: 12,345.123
139 A number formatted with the new symbol: $12,345.12
154 A number formatted with the new symbol: 12,345.123
159 A number formatted with the new symbol: 12,345.123
164 A number formatted with the new symbol: 12,345.123
[all …]
H A Dformatter_get_set_symbol2.phpt55 // Set a new symbol value.
67 // Check if the new value has been set.
71 // Format the number using the new value.
105 A number formatted with the new symbol: 12,345.123
115 A number formatted with the new symbol: 12,345.123
120 A number formatted with the new symbol: 12,345.123
140 A number formatted with the new symbol: $12,345.12
155 A number formatted with the new symbol: 12,345.123
160 A number formatted with the new symbol: 12,345.123
165 A number formatted with the new symbol: 12,345.123
[all …]
H A Dbug74298.phpt7 var_dump((new \DateTime('2017-01-01 01:02:03.123456'))->format('Y-m-d\TH:i:s.u'));
9 var_dump((new \IntlDateFormatter(
16 ))->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC'))));
25 )->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC'))));
H A Ddateformat_timezone_arg_variations.phpt15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL);
18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam');
21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon'));
24 $df = new IntlDateFormatter('es_ES', 0, 0, IntlTimeZone::createTimeZone('America/New_York'));
28 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', new IntlGregorianCalendar('Europe/Li…
32 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, new IntlGregorianCalendar('Europe/Lisbon'));
35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
H A Ddateformat_timezone_arg_variations4.phpt15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL);
18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam');
21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon'));
24 $df = new IntlDateFormatter('es_ES', 0, 0, IntlTimeZone::createTimeZone('America/New_York'));
28 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', new IntlGregorianCalendar('Europe/Li…
32 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, new IntlGregorianCalendar('Europe/Lisbon'));
35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
/PHP-7.3/tests/lang/
H A Dengine_assignExecutionOrder_007.phpt2 Check key execution order with new.
6 $a[$i=0][++$i] = new $a[++$i][++$i];
9 $o = new stdClass;
10 $o->a = new $a[$i=2][++$i];
11 $o->a->b = new $a[$i=2][++$i];
/PHP-7.3/ext/phar/tests/
H A Dphar_oo_compressed_002.phpt22 $phar = new Phar($fname);
33 file_put_contents($pname . '/b', 'new b');
34 file_put_contents($pname . '/c', 'new c', 0, $context);
35 file_put_contents($pname . '/d', 'new d');
36 file_put_contents($pname . '/e', 'new e', 0, $context);
38 $phar = new Phar($fname);
65 string(5) "new b"
67 string(5) "new c"
69 string(5) "new d"
71 string(5) "new e"
H A Dphar_oo_compressed_002b.phpt22 $phar = new Phar($fname);
33 file_put_contents($pname . '/b', 'new b');
34 file_put_contents($pname . '/c', 'new c', 0, $context);
35 file_put_contents($pname . '/d', 'new d');
36 file_put_contents($pname . '/e', 'new e', 0, $context);
38 $phar = new Phar($fname);
65 string(5) "new b"
67 string(5) "new c"
69 string(5) "new d"
71 string(5) "new e"
/PHP-7.3/ext/dom/tests/
H A DDOMNode_cloneNode_basic.phpt36 $dom = new DOMDocument();
53 $first_course->setAttribute('title', 'new title1');
56 $first_course->setAttribute('title', 'new title2');
59 $first_course->setAttribute('title', 'new title3');
61 $cloned_first_course_default->setAttribute('title', 'new title default');
62 $cloned_first_course_true->setAttribute('title', 'new title true');
63 $cloned_first_course_false->setAttribute('title', 'new title false');
77 Course: new title3:DOMElement
93 Course: new title default:DOMElement
96 Course: new title true:DOMElement
[all …]
/PHP-7.3/Zend/tests/assert/
H A Dbug70528.phpt14 assert(new \stdClass instanceof $bar);
15 assert(new \stdClass instanceof Bar);
16 assert(new \stdClass instanceof \Foo\Bar);
19 Warning: assert(): assert(new \stdClass() instanceof $bar) failed in %sbug70528.php on line %d
21 Warning: assert(): assert(new \stdClass() instanceof Bar) failed in %sbug70528.php on line %d
23 Warning: assert(): assert(new \stdClass() instanceof \Foo\Bar) failed in %sbug70528.php on line %d
/PHP-7.3/ext/pcre/tests/
H A Dbug73612.phpt5 $obj = new stdClass;
9 $obj = new stdClass;
13 $obj = new stdClass;
17 $obj = new stdClass;
21 $obj = new stdClass;

Completed in 37 milliseconds

12345678910>>...206