/PHP-7.3/ext/standard/tests/array/ |
H A D | arsort_object1.phpt | 48 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 D | bug76502.phpt | 7 "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 D | bug71922.phpt | 2 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 D | instanceof_002.phpt | 15 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 D | bug70685.phpt | 8 $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 D | bug73338.phpt | 6 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 D | indirect_method_call_002.phpt | 13 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 D | bug54384.phpt | 20 $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 D | SplObjectStorage_getHash.phpt | 5 $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 D | ReflectionClass_isUserDefined_basic.phpt | 8 $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 D | ReflectionClass_isInternal_basic.phpt | 8 $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 D | ReflectionObject_constructor_basic.phpt | 5 $r1 = new ReflectionObject(new stdClass); 9 $myInstance = new C; 10 $r2 = new ReflectionObject($myInstance); 13 $r3 = new ReflectionObject($r2);
|
H A D | ReflectionClass_constructor_001.phpt | 5 $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 D | destructor_and_references.phpt | 11 $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 D | formatter_get_set_symbol.phpt | 54 // 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 D | formatter_get_set_symbol2.phpt | 55 // 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 D | bug74298.phpt | 7 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 D | dateformat_timezone_arg_variations.phpt | 15 $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 D | dateformat_timezone_arg_variations4.phpt | 15 $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 D | engine_assignExecutionOrder_007.phpt | 2 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 D | phar_oo_compressed_002.phpt | 22 $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 D | phar_oo_compressed_002b.phpt | 22 $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 D | DOMNode_cloneNode_basic.phpt | 36 $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 D | bug70528.phpt | 14 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 D | bug73612.phpt | 5 $obj = new stdClass; 9 $obj = new stdClass; 13 $obj = new stdClass; 17 $obj = new stdClass; 21 $obj = new stdClass;
|