/PHP-5.4/ext/standard/tests/array/ |
H A D | krsort_object.phpt | 45 10 => new Integer(11), 20 => new Integer(66), 46 3 => new Integer(23), 4 => new Integer(-5), 47 50 => new Integer(0.001), 6 => new Integer(0) 52 "axx" => new String("axx"), "t" => new String("t"), 53 "w" => new String("w"), "py" => new String("py"), 54 "apple" => new String("apple"), "Orange" => new String("Orange"), 55 "Lemon" => new String("Lemon"), "aPPle" => new String("aPPle")
|
H A D | ksort_object.phpt | 46 11 => new Integer(11), 66 => new Integer(66), 47 23 => new Integer(23), -5 => new Integer(-5), 48 1 => new Integer(0.001), 0 => new Integer(0) 53 "axx" => new String("axx"), "t" => new String("t"), 54 "w" => new String("w"), "py" => new String("py"), 55 "apple" => new String("apple"), "Orange" => new String("Orange"), 56 "Lemon" => new String("Lemon"), "aPPle" => new String("aPPle")
|
/PHP-5.4/Zend/tests/ |
H A D | ns_060.phpt | 8 $a = new B; 9 $b = new A; 14 $a = new B; 15 $b = new A;
|
H A D | ns_081.phpt | 10 new foo; 11 new bar; 17 new foo1; 18 new foo;
|
H A D | ns_084.phpt | 10 new foo; 11 new bar; 17 new foo1; 18 new foo;
|
H A D | ns_087.phpt | 10 new foo; 11 new bar; 19 new foo1; 20 new foo;
|
H A D | bug31177.phpt | 8 throw new Exception; 12 return new DbGowRecordSet($this->query()); 16 new DbGowRecordSet($this->query()); 28 $db = new DbGow;
|
H A D | bug51822.phpt | 17 $this->test = new DestructableObject; 28 //Test::$mystatic = new DestructorCreator(); 30 $x = new Test(); 33 Test::$mystatic = new DestructorCreator();
|
H A D | objects_023.phpt | 6 $arr = array(new stdClass, 'stdClass'); 8 new $arr[0](); 9 new $arr[1]();
|
H A D | objects_022.phpt | 24 $foo = new foo; 25 $foo->testFoo(new foo); 26 $foo->testBar(new bar); 27 $foo->testBaz(new baz); 28 $foo->testFoo(new stdClass); // Catchable fatal error
|
H A D | ns_086.phpt | 19 new foo; 20 new bar; 27 new foo1; 28 new foo;
|
H A D | bug26698.phpt | 12 throw new Exception('NONE'); 26 $res = new Object(); 39 $res = new Object(); 52 $res = new Object(); 62 $p = new Proxy();
|
/PHP-5.4/ext/spl/tests/ |
H A D | heap_009.phpt | 21 $heap = new SplMinHeap; 25 $heap = new SplMinHeap; 30 $heap = new SplMaxHeap; 34 $heap = new SplMaxHeap; 39 $heap = new SplPriorityQueue; 43 $heap = new SplPriorityQueue;
|
H A D | recursive_tree_iterator_007.phpt | 8 $ary = array(new stdClass); 13 $this->it = new RecursiveArrayIterator($it); 20 $it = new RecursiveArrayIteratorAggregated($ary); 22 foreach(new RecursiveTreeIterator($it) as $k => $v) {
|
H A D | recursive_tree_iterator_001.phpt | 27 $it = new RecursiveArrayIterator($ary); 29 foreach(new RecursiveTreeIterator($it) as $k => $v) { 33 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) { 37 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator:… 41 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) { 45 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) {
|
H A D | bug38618.phpt | 39 $it = new RecursiveArrayIterator($array, $flags); 40 foreach (new RecursiveIteratorIterator($it) as $k => $fruit) { 61 1 => new FruitPublic('apple'), 64 1 => new FruitPublic('grape'), 74 1 => new FruitProtected('apple'), 77 1 => new FruitProtected('grape'),
|
/PHP-5.4/ext/reflection/tests/ |
H A D | bug46064.phpt | 10 $o = new x; 14 var_dump($h = new reflectionproperty($o, 'z')); 24 var_dump(new reflectionproperty($o, 'zz')); 29 var_dump(new reflectionproperty($o, 'zzz')); 40 $p = new reflectionproperty($this, 'foobar'); 45 new bar;
|
H A D | ReflectionProperty_setAccessible.phpt | 14 $a = new A; 15 $protected = new ReflectionProperty($a, 'protected'); 16 $protectedStatic = new ReflectionProperty('A', 'protectedStatic'); 17 $private = new ReflectionProperty($a, 'private'); 18 $privateStatic = new ReflectionProperty('A', 'privateStatic'); 72 $a = new A; 73 $b = new B; 74 $protected = new ReflectionProperty($b, 'protected'); 75 $protectedStatic = new ReflectionProperty('B', 'protectedStatic'); 76 $private = new ReflectionProperty($a, 'private');
|
H A D | ReflectionObject_isInstance_basic.phpt | 11 $instances = array( "myA" => new A, 12 "myB" => new B, 13 "myX" => new X ); 16 $ro = new ReflectionObject(new $class);
|
H A D | bug40431.phpt | 7 $Obj = new stdClass; 9 $RefObj = new ReflectionObject($Obj); 27 $Obj = new test2; 29 $RefObj = new ReflectionObject($Obj); 44 $Obj = new test3; 46 $RefObj = new ReflectionObject($Obj); 65 $Obj = new test4; 67 $RefObj = new ReflectionObject($Obj);
|
/PHP-5.4/tests/classes/ |
H A D | inheritance_005.phpt | 22 echo "About to construct new B: \n"; 23 $b = new B; 31 echo "About to construct new C: \n"; 32 $c = new C; 44 About to construct new B: 50 About to construct new C:
|
H A D | array_access_013.phpt | 8 … public function offsetExists($offset) { throw new Exception(__METHOD__); return false; } 9 … public function offsetGet($offset) { throw new Exception(__METHOD__); return $offset; } 10 public function offsetSet($offset, $data ) { throw new Exception(__METHOD__); } 11 public function offsetUnset($offset) { throw new Exception(__METHOD__); } 14 $t = new Test;
|
/PHP-5.4/ext/date/tests/ |
H A D | DateTimeZone_construct_error.phpt | 2 Test new DateTimeZone() : error conditions 6 * Description: Returns new DateTimeZone object 15 echo "\n-- Testing new DateTimeZone() with more than expected no. of arguments --\n"; 18 var_dump( new DateTimeZone($timezone, $extra_arg) ); 25 -- Testing new DateTimeZone() with more than expected no. of arguments --
|
H A D | oo_001.phpt | 15 $d = new DateTime; 18 $d = new _d; 22 new DateTime("1am todax"); 27 $t = new DateTimeZone("UTC"); 30 $t = new _t; 34 new DateTimeZone("GottaFindThisOne");
|
H A D | forward-transition-construction.phpt | 7 $date = new DateTime('2010-03-14 01:30:00'); 10 $date = new DateTime('2010-03-14 02:00:00'); 13 $date = new DateTime('2010-03-14 02:30:00'); 16 $date = new DateTime('2010-03-14 03:00:00'); 19 $date = new DateTime('2010-03-14 03:30:00');
|