Home
last modified time | relevance | path

Searched refs:new (Results 101 – 125 of 5134) sorted by relevance

12345678910>>...206

/PHP-7.4/ext/phar/tests/
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.4/ext/intl/tests/
H A Dformatter_get_set_symbol2.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: 12,345.123
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 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);
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);
/PHP-7.4/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.4/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";
H A Dobserver_008.phpt7 $o1 = new StdClass;
8 $o2 = new StdClass;
9 $o3 = new StdClass;
11 $a = new A;
15 $b = new SplObjectSTorage();
H A DarrayObject___construct_basic1.phpt6 var_dump(new ArrayObject());
9 $a = new stdClass;
11 var_dump(new ArrayObject($a));
14 var_dump(new ArrayObject(array('key1' => 'val1')));
17 var_dump(new ArrayObject(new ArrayObject($a)));
H A Dbug44615.phpt8 $a = new stdClass();
12 $rai = new RecursiveArrayIterator($array,RecursiveArrayIterator::CHILD_ARRAYS_ONLY);
14 foreach (new RecursiveIteratorIterator($rai) as $t) {
18 $rai = new RecursiveArrayIterator($array);
19 foreach (new RecursiveIteratorIterator($rai) as $t) {
H A Dspl_caching_iterator_constructor_flags.phpt10 $arrayIterator = new ArrayIterator($array);
12 $test = new CachingIterator($arrayIterator, 0);
13 $test = new CachingIterator($arrayIterator, 1);
14 $test = new CachingIterator($arrayIterator, 2);
15 $test = new CachingIterator($arrayIterator, 3); // this throws an exception
/PHP-7.4/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.4/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload5.phpt12 var_dump(new A);
17 var_dump(new B);
22 var_dump(new X);
27 var_dump(new Y);
32 var_dump(new Q);
37 var_dump(new R);
41 var_dump(new B);
/PHP-7.4/Zend/tests/arg_unpack/
H A Dnew.phpt2 Unpack arguments for new expression
12 new Foo(...[]);
13 new Foo(...[1, 2, 3]);
14 new Foo(...[1], ...[], ...[2, 3]);
/PHP-7.4/ext/ffi/tests/
H A D004.phpt35 var_dump($ffi->new("enum _a"));
36 var_dump($ffi->new("enum _b"));
37 var_dump($ffi->new("c"));
38 var_dump($ffi->new("d"));
39 var_dump($ffi->new("int[_c2]"));
40 var_dump($ffi->new("int[_c3]"));
41 var_dump($ffi->new("int[_c4]"));
43 var_dump($ffi->new("enum _e"));
48 var_dump($ffi->new("f"));
/PHP-7.4/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 …]
/PHP-7.4/ext/reflection/tests/
H A DReflectionMethod_constructor_basic.phpt13 $methodInfo = new ReflectionMethod("NewCtor::__construct");
18 echo "\nInherited new-style constructor\n";
19 $methodInfo = new ReflectionMethod("ExtendsNewCtor::__construct");
28 $methodInfo = new ReflectionMethod("OldCtor::OldCtor");
34 $methodInfo = new ReflectionMethod("ExtendsOldCtor::OldCtor");
43 $methodInfo = new ReflectionMethod("X::Y");
49 $methodInfo = new ReflectionMethod("Y::Y");
62 $methodInfo = new ReflectionMethod("OldAndNewCtor::OldAndNewCtor");
66 $methodInfo = new ReflectionMethod("OldAndNewCtor::__construct");
79 $methodInfo = new ReflectionMethod("NewAndOldCtor::__construct");
[all …]
H A DReflectionMethod_setAccessible.phpt12 $private = new ReflectionMethod('A', 'aPrivate');
13 $privateStatic = new ReflectionMethod('A', 'aPrivateStatic');
14 $protected = new ReflectionMethod('A', 'aProtected');
18 $private->invoke(new A, NULL);
26 $private->invokeArgs(new A, array(NULL));
50 $protected->invoke(new A, NULL);
58 $protected->invokeArgs(new A, array(NULL));
86 $private->invoke(new A, NULL);
87 $private->invokeArgs(new A, array(NULL));
90 $protected->invoke(new A, NULL);
[all …]
H A DReflectionType_001.phpt12 function factory(): self { return new c; }
21 new ReflectionFunction('foo'),
22 new ReflectionFunction($closure),
40 new ReflectionMethod('c', 'bar'),
41 new ReflectionMethod('c', 'pbar'),
60 new ReflectionFunction('bar'),
61 new ReflectionMethod('c', 'bar'),
62 new ReflectionMethod('c', 'factory'),
64 new ReflectionFunction($closure),
99 $obj = new PropTypeTest;
[all …]
/PHP-7.4/Zend/tests/
H A Dlist_001.phpt6 list($a, list($b)) = array(new stdclass, array(new stdclass));
8 [$a, [$b]] = array(new stdclass, array(new stdclass));
H A Dbug60833.phpt8 $this->v1 = new sELF;
9 $this->v2 = new SELF;
17 $this->v3 = new sELF;
18 $this->v4 = new PARENT;
22 $t = new B();
H A Dbug64720.phpt9 self::$requests[1] = new self();
35 new ErrorTest();
39 new ErrorTest();
43 $foo = new Foo();
44 $bar = new Bar();
H A Dbug48409.phpt13 throw new ABCException;
31 $b = new BBB;
32 $c = new CCC;
52 throw new Exception;
58 $runner = new Runner;
59 $runner->run(new AAA);
/PHP-7.4/ext/date/tests/
H A Dbug62561.phpt5 $tz = new DateTimeZone('America/New_York');
6 $ts = new DateTime('@1341115200', $tz);
7 $int = new DateInterval('P1D');
8 $dayFromTs = new DateTime('@1341115200', new DateTimeZone('America/New_York'));
H A Ddate_period.phpt6 $db = new DateTime( '2008-01-01' );
7 $de = new DateTime( '2008-12-31' );
10 foreach ( new DatePeriod( $db, $di, $de ) as $dt )
17 $db = new DateTime( '2007-12-31' );
18 $de = new DateTime( '2009-12-31 23:59:59' );
21 foreach ( new DatePeriod( $db, $di, $de, DatePeriod::EXCLUDE_START_DATE ) as $dt )

Completed in 27 milliseconds

12345678910>>...206