/PHP-7.4/ext/intl/tests/ |
H A D | dateformat_bug71516.phpt | 10 $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 D | dateformat_create_cal_arg.phpt | 15 $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 D | bug45139.phpt | 22 $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 D | ReflectionClass_getName_basic.phpt | 12 $r1 = new ReflectionClass("stdClass"); 14 $myInstance = new stdClass; 15 $r2 = new ReflectionClass($myInstance); 17 $r3 = new ReflectionClass("TrickClass");
|
H A D | ReflectionMethod_getClosureThis.phpt | 23 $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 D | ReflectionProperty_setValue_error.phpt | 17 $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 D | reflection.phpt | 10 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 D | rfc-datetime_and_daylight_saving_time-type3-bd2.phpt | 20 $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 D | bug43003.phpt | 7 $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 D | list_keyed_evaluation_order_nested.phpt | 8 $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 D | indirect_property_access.phpt | 16 $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 D | bug40757.phpt | 15 $base=new Base(); 16 print_r($base->getFields(new Base())); 17 $child=new Child(); 18 print_r($child->getFields(new Base()));
|
H A D | bug49893.phpt | 8 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 D | iterator_002.phpt | 15 return new RecursiceArrayIterator($this->current()); 33 return new RecursiceArrayIterator($this->getInnerIterator()->current()); 39 $dir = new RecursiveIteratorIterator(new CrashIterator(new RecursiceArrayIterator($array)), Recursi…
|
H A D | recursiveIteratorIterator_callHasChildren_error.phpt | 7 $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 D | recursiveIteratorIterator_nextelement_error.phpt | 7 $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 D | array_016.phpt | 6 $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 D | recursiveIteratorIterator_beginchildren_error.phpt | 7 $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 D | bug61418.phpt | 5 $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 D | bug75155.phpt | 6 $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 D | fault_warning.phpt | 7 $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 D | bug28739.phpt | 12 $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 D | rsort_object1.phpt | 45 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 D | unset_properties.phpt | 74 $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 D | class_order_autoload3.phpt | 11 var_dump(new A); 16 var_dump(new B); 21 var_dump(new X); 26 var_dump(new Y); 30 var_dump(new B);
|