/PHP-7.4/ext/reflection/tests/ |
H A D | ReflectionObject_FileInfo_basic.phpt | 5 $rc = new ReflectionObject(new C); 10 $rc = new ReflectionObject(new stdclass);
|
H A D | ReflectionParameter_invalidMethodInConstructor.phpt | 8 new ReflectionParameter (array ('A', 'b'), 0); 13 new ReflectionParameter (array ('C', 'b'), 0); 18 new ReflectionParameter (array (new C, 'b'), 0); 26 new ReflectionParameter(array ('A', 'b')); 33 new ReflectionParameter(0, 0);
|
H A D | bug52057.phpt | 8 $reflection = new ReflectionClass('closure'); 11 $reflection = new ReflectionClass($closure); 14 $reflection = new ReflectionObject($closure); 17 $reflection = new ReflectionClass('closure'); 21 $reflection = new ReflectionClass($closure); 25 $reflection = new ReflectionObject($closure);
|
H A D | ReflectionClass_newInstanceWithoutConstructor.phpt | 15 $class = new ReflectionClass('Foo'); 18 $class = new ReflectionClass('StdClass'); 21 $class = new ReflectionClass('DateTime'); 24 $class = new ReflectionClass('Generator'); 34 $class = new ReflectionClass('Bar');
|
/PHP-7.4/Zend/tests/ |
H A D | objects_023.phpt | 6 $arr = array(new stdClass, 'stdClass'); 8 new $arr[0](); 9 new $arr[1]();
|
H A D | bug39346.phpt | 19 $test = new test(2); 20 $test = new test(1); 21 $test = new test(2); 22 $test = new test(3);
|
H A D | bug78379.phpt | 14 $e = new E; 15 $e->f = new E; 17 $e->a = new C; 20 var_dump(new C);
|
H A D | bug65784.phpt | 7 throw new Exception("not catch"); 11 throw new Exception("caught"); 28 throw new Exception("caught"); 32 throw new Exception("caught"); 45 throw new Exception("not caught"); 49 throw new NotExists();
|
/PHP-7.4/ext/intl/tests/ |
H A D | dateformat_create_cal_arg_variant2.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);
|
H A D | dateformat_create_cal_arg_variant3.phpt | 16 $cal = new IntlGregorianCalendar('UTC', NULL); 17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 25 $cal = new IntlGregorianCalendar('UTC', NULL); 26 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal); 30 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0); 34 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL); 38 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL); 41 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
|
H A D | dateformat_create_cal_arg_variant4.phpt | 16 $cal = new IntlGregorianCalendar('UTC', NULL); 17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 25 $cal = new IntlGregorianCalendar('UTC', NULL); 26 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal); 30 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0); 34 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL); 38 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL); 41 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
|
H A D | dateformat_create_cal_arg_variant5.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/Zend/tests/type_declarations/ |
H A D | typed_properties_076.phpt | 50 $test = new Test; 56 valid($test, 'A', 'A', new A); 57 valid($test, 'A', 'B', new B); 58 invalid($test, 'A', 'B', new A); 60 valid($test, 'A', 'object', new A); 61 invalid($test, 'A', 'object', new Test); 62 valid($test, 'iterable', 'Iterator', new ArrayIterator); 64 valid($test, 'object', 'iterable', new ArrayIterator); 65 invalid($test, 'iterable', 'object', new stdClass);
|
/PHP-7.4/ext/dba/ |
H A D | dba_tcadb.c | 91 char *value, *new = NULL; in DBA_FETCH_FUNC() local 99 new = estrndup(value, value_size); in DBA_FETCH_FUNC() 103 return new; in DBA_FETCH_FUNC() 154 char *value, *new = NULL; in DBA_FIRSTKEY_FUNC() local 163 new = estrndup(value, value_size); in DBA_FIRSTKEY_FUNC() 167 return new; in DBA_FIRSTKEY_FUNC() 174 char *value, *new = NULL; in DBA_NEXTKEY_FUNC() local 181 new = estrndup(value, value_size); in DBA_NEXTKEY_FUNC() 185 return new; in DBA_NEXTKEY_FUNC()
|
/PHP-7.4/ext/spl/tests/ |
H A D | arrayObject_getFlags_basic2.phpt | 5 $ao = new ArrayObject(array(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS); 8 $ao2 = new ArrayObject($ao); 12 $ai = new ArrayIterator($ao); 15 $ao2 = new ArrayObject($ao, 0);
|
H A D | spl_cachingiterator___toString_basic.phpt | 9 $ai = new ArrayIterator(array(new stdClass(), new stdClass())); 10 $ci = new CachingIterator($ai);
|
H A D | RecursiveCallbackFilterIteratorTest.phpt | 32 'instance method' => function() { return array(new A, 'test'); }, 42 $it = new RecursiveArrayIterator(array(1, array(2, 3), array(4, 5))); 43 $it = new RecursiveCallbackFilterIterator($it, $callback); 44 $it = new RecursiveIteratorIterator($it); 54 $it = new RecursiveArrayIterator(array(1, array(2, 3), array(4, 5))); 55 $it = new RecursiveCallbackFilterIterator($it, $test()); 56 $it = new RecursiveIteratorIterator($it);
|
H A D | recursive_tree_iterator_006.phpt | 30 $this->it = new RecursiveArrayIterator($it); 37 $it = new RecursiveArrayIteratorAggregated($ary); 39 foreach(new RecursiveTreeIterator($it) as $k => $v) { 43 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) { 47 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator:… 51 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) { 55 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) {
|
H A D | array_019.phpt | 6 $ar = new ArrayObject(array(1)); foreach($ar as &$v) var_dump($v); 7 $ar = new ArrayIterator(array(2)); foreach($ar as &$v) var_dump($v); 8 $ar = new RecursiveArrayIterator(array(3)); foreach($ar as &$v) var_dump($v); 18 $ar = new ArrayIteratorEx(array(4)); foreach($ar as $v) var_dump($v); 19 $ar = new ArrayIteratorEx(array(5)); foreach($ar as &$v) var_dump($v);
|
/PHP-7.4/tests/classes/ |
H A D | iterators_007.phpt | 10 …public function rewind() { if ($this->x == 0) throw new Exception(__METHOD__); reset($this->arr… 11 …public function current() { if ($this->x == 1) throw new Exception(__METHOD__); return current($… 12 …public function key() { if ($this->x == 2) throw new Exception(__METHOD__); return key($this… 13 …public function next() { if ($this->x == 3) throw new Exception(__METHOD__); next($this->arr)… 14 …public function valid() { if ($this->x == 4) throw new Exception(__METHOD__); return (key($thi… 17 $t = new Test();
|
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | bug40398.phpt | 68 new Derived_1('1'); 69 new Derived_2('2'); 70 new Derived_3('3'); 71 new Derived_4('4'); 72 new Derived_5('5'); 73 new Derived_6('6');
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | uasort_object2.phpt | 89 0 => new StaticClass(20), 90 1 => new StaticClass(50), 91 2 => new StaticClass(15), 92 3 => new StaticClass(70), 100 0 => new EmptyClass(), 101 1 => new EmptyClass(), 102 2 => new EmptyClass(), 103 3 => new EmptyClass(), 111 0 => new ChildClass(20), 112 1 => new ChildClass(500), [all …]
|
/PHP-7.4/ext/soap/tests/ |
H A D | server031.phpt | 34 return new ItemArray(array( 35 new Item(0), 36 new Item(1), 37 new Item(2), 38 new Item(3), 39 new Item(4), 40 new Item(5), 41 new Item(6), 42 new Item(7), 43 new Item(8), [all …]
|
/PHP-7.4/ext/date/tests/ |
H A D | bug73858.phpt | 13 $s = new DateTime($ss); 14 $e = new DateTime($es); 18 $s = (new DateTime(null))->setTimestamp(strtotime($ss)); // verbose setup method 19 $e = (new DateTime(null))->setTimestamp(strtotime($es)); // verbose setup method 27 $s = (new DateTime(null))->setTimestamp(strtotime($ss)); // verbose setup method 28 $e = new DateTime($es); 32 $s = new DateTime($ss); 33 $e = (new DateTime(null))->setTimestamp(strtotime($es)); // verbose setup method 41 $s = new DateTime($ss); 52 $s = new DateTime($ss); [all …]
|
H A D | DateTime_construct_error.phpt | 2 Test new DateTime() : error conditions 6 * Description: Returns new DateTime object 15 echo "\n-- Testing new DateTime() with more than expected no. of arguments --\n"; 20 var_dump( new DateTime($time, $timezone, $extra_arg) ); 30 -- Testing new DateTime() with more than expected no. of arguments --
|