Home
last modified time | relevance | path

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

12345678910>>...199

/PHP-7.0/ext/intl/tests/
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 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);
H A Ddateformat_timezone_arg_variations3.phpt16 $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 Ddateformat_timezone_arg_variations2.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.0/ext/reflection/tests/
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 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 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.0/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.0/ext/date/tests/
H A DDatePeriod_getter.phpt7 $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 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 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 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();
H A Dclass_alias_012.phpt11 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 Dphar_oo_compressed_002.phpt22 $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 Dphar_oo_compressed_002b.phpt22 $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 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.0/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');
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 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.0/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;
/PHP-7.0/ext/simplexml/tests/
H A Dbug72971_2.phpt8 $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 Dbug66702.phpt9 $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 Diterator_024.phpt8 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 Dusort_object2.phpt68 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 …]

Completed in 57 milliseconds

12345678910>>...199