/PHP-7.0/ext/intl/tests/ |
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 | 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);
|
H A D | dateformat_timezone_arg_variations3.phpt | 16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL); 19 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam'); 22 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon')); 25 $df = new IntlDateFormatter('es_ES', 0, 0, IntlTimeZone::createTimeZone('America/New_York')); 29 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', new IntlGregorianCalendar('Europe/Li… 33 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, new IntlGregorianCalendar('Europe/Lisbon')); 36 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
|
H A D | dateformat_timezone_arg_variations2.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.0/ext/reflection/tests/ |
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 | 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 | 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.0/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.0/ext/date/tests/ |
H A D | DatePeriod_getter.phpt | 7 $start = new DateTime('2000-01-01 00:00:00', new DateTimeZone('Europe/Berlin')); 8 $end = new DateTime('2000-01-31 00:00:00', new DateTimeZone('UTC')); 9 $interval = new DateInterval('P1D'); 10 $period = new DatePeriod($start, $interval, $end);
|
/PHP-7.0/Zend/tests/ |
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 | 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 | 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();
|
H A D | class_alias_012.phpt | 11 new foo; 15 var_dump(new foo); 16 var_dump(new T); 19 var_dump(new $var); 22 var_dump(new $var);
|
/PHP-7.0/ext/phar/tests/ |
H A D | phar_oo_compressed_002.phpt | 22 $phar = new Phar($fname); 33 file_put_contents($pname . '/b', b'new b'); 34 file_put_contents($pname . '/c', b'new c', 0, $context); 35 file_put_contents($pname . '/d', b'new d'); 36 file_put_contents($pname . '/e', b'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', b'new b'); 34 file_put_contents($pname . '/c', b'new c', 0, $context); 35 file_put_contents($pname . '/d', b'new d'); 36 file_put_contents($pname . '/e', b'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.0/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.0/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'); 78 Course: new title3:DOMElement 94 Course: new title default:DOMElement 97 Course: new title true:DOMElement [all …]
|
/PHP-7.0/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.0/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;
|
/PHP-7.0/ext/simplexml/tests/ |
H A D | bug72971_2.phpt | 8 $xml = new SimpleXMLElement('<root xmlns:ns="ns"><foo>bar</foo><ns:foo>ns:bar</ns:foo></root>'); 10 $xml->foo = 'new-bar'; 14 $xml->children('ns')->foo = 'ns:new-bar'; 22 string(7) "new-bar" 30 string(7) "new-bar" 34 string(10) "ns:new-bar"
|
/PHP-7.0/ext/spl/tests/ |
H A D | bug66702.phpt | 9 $it = new \ArrayIterator(array("foo", "bar", "baz")); 10 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH); 12 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::INVERT_MATCH); 15 $it = new \ArrayIterator(array("foo" => 1, "bar" => 2, "baz" => 3)); 16 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::USE_KEY); 18 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::USE_KEY | \RegexIter…
|
H A D | iterator_024.phpt | 8 foreach(new RecursiveIteratorIterator(new ArrayObject($ar, 0, "RecursiveArrayIterator")) as $v) ech… 10 $it = new ArrayObject($ar); 15 foreach(new RecursiveIteratorIterator(new ArrayObject($ar)) as $v) echo "$v\n"; 26 foreach(new RecursiveIteratorIterator($it) as $v) echo "$v\n";
|
/PHP-7.0/ext/standard/tests/array/ |
H A D | usort_object2.phpt | 68 0 => new StaticClass(20), 69 1 => new StaticClass(50), 70 2 => new StaticClass(15), 71 3 => new StaticClass(70), 79 0 => new EmptyClass(), 80 1 => new EmptyClass(), 81 2 => new EmptyClass(), 82 3 => new EmptyClass(), 90 0 => new ChildClass(20), 91 1 => new ChildClass(500), [all …]
|