Home
last modified time | relevance | path

Searched refs:new (Results 126 – 150 of 5262) sorted by relevance

12345678910>>...211

/PHP-7.4/ext/intl/tests/
H A Ddateformat_bug71516.phpt10 $goodFormatter = new IntlDateFormatter($loc, IntlDateFormatter::FULL, IntlDateFormatter::FULL, new
11 $badFormatter = new IntlDateFormatter($loc, IntlDateFormatter::FULL, IntlDateFormatter::FULL, new
12 $badFormatter2 = new IntlDateFormatter($loc, IntlDateFormatter::FULL, IntlDateFormatter::FULL, new
H A Ddateformat_create_cal_arg.phpt15 $cal = new IntlGregorianCalendar('UTC', NULL);
16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
24 $cal = new IntlGregorianCalendar('UTC', NULL);
25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
33 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL);
37 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL);
40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
/PHP-7.4/ext/reflection/tests/
H A Dbug45139.phpt22 $rc = new ReflectionClass('C');
26 $rc = new ReflectionClass('A');
30 $rc = new ReflectionClass('B');
34 $rc = new ReflectionClass('C');
38 $rc = new ReflectionClass('C');
42 $rc = new ReflectionClass('B');
46 $rc = new ReflectionClass('C');
H A DReflectionClass_getName_basic.phpt12 $r1 = new ReflectionClass("stdClass");
14 $myInstance = new stdClass;
15 $r2 = new ReflectionClass($myInstance);
17 $r3 = new ReflectionClass("TrickClass");
H A DReflectionMethod_getClosureThis.phpt23 $class = new ReflectionClass( 'Example' );
24 $staticclass = new ReflectionClass( 'StaticExample' );
25 $object = new Example();
29 $rf = new ReflectionFunction($closure);
36 $rf = new ReflectionFunction($closure);
H A DReflectionProperty_setValue_error.phpt17 $instance = new TestClass();
18 $instanceWithNoProperties = new AnotherClass();
19 $propInfo = new ReflectionProperty('TestClass', 'pub2');
30 $propInfo = new ReflectionProperty('TestClass', 'stat');
36 var_dump($propInfo->setValue("A new value"));
42 var_dump($propInfo->setValue(true, "Another new value"));
47 $propInfo = new ReflectionProperty('TestClass', 'prot');
55 $propInfo = new ReflectionProperty('TestClass', 'pub2');
85 string(11) "A new value"
89 string(11) "A new value"
[all …]
/PHP-7.4/ext/snmp/tests/
H A Dreflection.phpt10 echo new reflectionmethod('snmp', '__construct');
11 echo new reflectionmethod('snmp', 'close');
12 echo new reflectionmethod('snmp', 'setSecurity');
13 echo new reflectionmethod('snmp', 'get');
14 echo new reflectionmethod('snmp', 'getnext');
15 echo new reflectionmethod('snmp', 'walk');
16 echo new reflectionmethod('snmp', 'set');
17 echo new reflectionmethod('snmp', 'getErrno');
18 echo new reflectionmethod('snmp', 'getError');
/PHP-7.4/ext/date/tests/
H A Drfc-datetime_and_daylight_saving_time-type3-bd2.phpt20 $tz = new DateTimeZone('America/New_York');
26 $end = new DateTime('2010-11-07 05:30:00');
28 $start = new DateTime('2010-11-06 04:30:59');
32 $end = new DateTime('2010-11-07 01:30:00 EST');
34 $start = new DateTime('2010-11-06 04:30:00');
38 $end = new DateTime('2010-11-07 01:30:00 EDT');
40 $start = new DateTime('2010-11-06 04:30:00');
44 $end = new DateTime('2010-11-07 01:30:00 EST');
46 $start = new DateTime('2010-11-06 01:30:00');
H A Dbug43003.phpt7 $oDateTest = new DateTime("@0", new DateTimeZone(date_default_timezone_get()));
10 $oDateTest->setTimezone(new DateTimeZone("UTC"));
13 $oDateTest->setTimezone(new DateTimeZone(date_default_timezone_get()));
16 $oDateTest = new DateTime("@0");
19 $oDateTest->setTimezone( new DateTimeZone(date_default_timezone_get()));
/PHP-7.4/Zend/tests/
H A Dlist_keyed_evaluation_order_nested.phpt8 $a = new Stringable("A");
9 $c = new Stringable("C");
10 $f = new Stringable("F");
11 $g = new Stringable("G");
12 $i = new Stringable("I");
14 $k = new IndexableRetrievable("K", new Indexable([
16 "C" => new Indexable([
20 "F" => new Indexable([
26 $store = new Indexable([]);
H A Dindirect_property_access.phpt16 $bar = new bar;
18 var_dump((new bar)->y); // foo
19 var_dump((new $x)->y); // foo
20 var_dump((new $bar->y)->x); // 1
H A Dbug40757.phpt15 $base=new Base();
16 print_r($base->getFields(new Base()));
17 $child=new Child();
18 print_r($child->getFields(new Base()));
H A Dbug49893.phpt8 throw new Exception("2");
16 $this->a = new A();
17 throw new Exception("1");
21 $b = new B();
/PHP-7.4/ext/spl/tests/
H A Diterator_002.phpt15 return new RecursiceArrayIterator($this->current());
33 return new RecursiceArrayIterator($this->getInnerIterator()->current());
39 $dir = new RecursiveIteratorIterator(new CrashIterator(new RecursiceArrayIterator($array)), Recursi…
H A DrecursiveIteratorIterator_callHasChildren_error.phpt7 $arrOb = new ArrayObject($arr);
9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
14 throw new Exception;
19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur…
23 $recItIt2 = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
H A DrecursiveIteratorIterator_nextelement_error.phpt7 $arrOb = new ArrayObject($arr);
9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
14 throw new Exception;
19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur…
23 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
H A Darray_016.phpt6 $it = new ArrayIterator(range(0,3));
8 foreach(new IteratorIterator($it) as $v)
13 $it = new ArrayObject(range(0,3));
15 foreach(new IteratorIterator($it) as $v)
H A DrecursiveIteratorIterator_beginchildren_error.phpt7 $arrOb = new ArrayObject($arr);
9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
14 throw new Exception;
19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur…
23 $recItIt2 = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
H A Dbug61418.phpt5 $fileIterator = new FilesystemIterator(__DIR__, FilesystemIterator::KEY_AS_FILENAME);
6 $regexpIterator = new RegexIterator($fileIterator, '#.*#');
13 $dirIterator = new DirectoryIterator(__DIR__);
14 $regexpIterator2 = new RegexIterator($dirIterator, '#.*#');
H A Dbug75155.phpt6 $array_a = new ArrayIterator(array('a', 'b', 'c'));
7 $array_b = new ArrayIterator(array('d', 'e', 'f'));
9 $iterator = new AppendIterator;
12 $iterator2 = new AppendIterator;
/PHP-7.4/ext/soap/tests/
H A Dfault_warning.phpt7 $fault = new SoapFault("", "message"); // Can't be an empty string
8 $fault = new SoapFault(0, "message"); // Can't be a non-string (except for null)
9 $fault = new SoapFault("Sender", "message");
11 $fault = new SoapFault(null, "message");
13 $fault = new SoapFault(["more"], "message"); // two elements in array required
14 $fault = new SoapFault(["m", "more", "superflous"], "message"); // two required
15 $fault = new SoapFault(["more-ns", "Sender"], "message"); // two given
/PHP-7.4/ext/standard/tests/array/
H A Dbug28739.phpt12 $p1 = array(new p(2), new p(1), new p(0));
13 $p2 = array(new p(0), new p(2), new p(3));
H A Drsort_object1.phpt45 new for_integer_rsort(11), new for_integer_rsort(66),
46 new for_integer_rsort(23), new for_integer_rsort(-5),
47 new for_integer_rsort(0.001), new for_integer_rsort(0)
52 new for_string_rsort("axx"), new for_string_rsort("t"),
53 new for_string_rsort("w"), new for_string_rsort("py"),
54 new for_string_rsort("apple"), new for_string_rsort("Orange"),
55 new for_string_rsort("Lemon"), new for_string_rsort("aPPle")
/PHP-7.4/tests/classes/
H A Dunset_properties.phpt74 $o = new Test;
86 echo $o->setPublicProperty('new publicProperty value via setter');
91 $o->publicProperty = 'new publicProperty value via public access';
121 echo $o->setPrivateProperty('new privateProperty value via setter');
135 __set "publicProperty" to "new publicProperty value via setter"
136 new publicProperty value via setter
139 new publicProperty value via public access
144 __set "protectedProperty" to "new protectedProperty value via setter"
146 new protectedProperty value via setter
151 __set "privateProperty" to "new privateProperty value via setter"
[all …]
/PHP-7.4/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload3.phpt11 var_dump(new A);
16 var_dump(new B);
21 var_dump(new X);
26 var_dump(new Y);
30 var_dump(new B);

Completed in 37 milliseconds

12345678910>>...211