/PHP-5.5/Zend/tests/ |
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();
|
H A D | indirect_call_array_004.phpt | 8 throw new Exception('foo'); 12 throw new Exception($a); 16 throw new Exception($a); 42 $foo = new foo; 53 $foo = new foo;
|
H A D | zend2.php.txt | 23 self::$m_instance = new Counter(); 58 return new Circle(); 60 return new Square(); 112 $obj = new HelloWorld(); 139 $this->name = new Name($_name); 148 $person = new Person("John", "New York"); 170 throw new MyException("'This is an exception!'"); 211 $obj = new MyCloneable(); 249 $obj = new BaseClass(); 251 $obj = new SubClass(); [all …]
|
H A D | instanceof_001.phpt | 6 $a = new stdClass; 9 var_dump(new stdCLass instanceof stdClass); 11 $b = create_function('', 'return new stdClass;'); 14 $c = array(new stdClass);
|
/PHP-5.5/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 | 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"; 19 var_dump( new DateTime($time, $timezone, $extra_arg) ); 26 -- Testing new DateTime() with more than expected no. of arguments --
|
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');
|
H A D | DateTime_data-massive.inc | 15 $end = new DateTime; 19 $start = new DateTime; 26 $end = new DateTime; 30 $start = new DateTime;
|
/PHP-5.5/ext/reflection/tests/ |
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 | 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);
|
H A D | ReflectionParameter_isDefault.phpt | 8 $a = new A; 11 $ro = new ReflectionObject($a); 21 $prop1 = new ReflectionProperty($a, 'defprop'); 22 $prop2 = new ReflectionProperty($a, 'myprop');
|
H A D | ReflectionMethod_invoke_basic.phpt | 16 throw new Exception("Called willThrow()"); 37 $foo = new ReflectionMethod('TestClass', 'foo'); 38 $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); 39 $staticMethod = new ReflectionMethod('TestClass::staticMethod'); 40 $privateMethod = new ReflectionMethod("TestClass::privateMethod"); 41 $methodThatThrows = new ReflectionMethod("TestClass::willThrow"); 43 $testClassInstance = new TestClass(); 61 var_dump($staticMethod->invoke(new stdClass()));
|
/PHP-5.5/ext/spl/tests/ |
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'),
|
H A D | iterator_005.phpt | 15 $it = new ArrayIteratorEx(range(0,3)); 17 foreach(new IteratorIterator($it) as $v) 31 $it = new ArrayObjectEx(range(0,3)); 33 foreach(new IteratorIterator($it) as $v)
|
/PHP-5.5/tests/classes/ |
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.5/ext/soap/tests/interop/Round2/GroupB/ |
H A D | r2_groupB_003s.phpt | 7 $param = new SoapParam(new SoapVar(array( 8 new SoapVar(array( 9 new SoapVar('row0col0', XSD_STRING), 10 new SoapVar('row0col1', XSD_STRING), 11 new SoapVar('row0col2', XSD_STRING) 13 new SoapVar(array( 14 new SoapVar('row1col0', XSD_STRING), 15 new SoapVar('row1col1', XSD_STRING), 16 new SoapVar('row1col2', XSD_STRING) 19 $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=…
|
/PHP-5.5/ext/phar/tests/zip/ |
H A D | open_for_write_newfile_c.phpt | 2 Phar: fopen a .phar for writing (new file) zip-based 17 $phar = new Phar($fname); 33 $fp = fopen($alias . '/b/new.php', 'wb'); 38 include $alias . '/b/new.php'; 46 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): failed to open stream: phar e… 53 …clude(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): failed to open stream: phar error: "b… 55 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c.phar.zip/b/new.php' for inclu…
|
H A D | open_for_write_newfile_c_5_2.phpt | 2 Phar: fopen a .phar for writing (new file) zip-based 15 $phar = new Phar($fname); 31 $fp = fopen($alias . '/b/new.php', 'wb'); 36 include $alias . '/b/new.php'; 44 Warning: fopen(phar://%sopen_for_write_newfile_c_5_2.phar.zip/b/new.php): failed to open stream: ph… 51 …e(phar://%sopen_for_write_newfile_c_5_2.phar.zip/b/new.php): failed to open stream: phar error: "b… 53 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c_5_2.phar.zip/b/new.php' for i…
|
/PHP-5.5/ext/phar/tests/tar/ |
H A D | open_for_write_newfile_c.phpt | 2 Phar: fopen a .phar for writing (new file) tar-based 17 $phar = new Phar($fname); 33 $fp = fopen($alias . '/b/new.php', 'wb'); 37 include $alias . '/b/new.php'; 46 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.tar/b/new.php): failed to open stream: phar e… 53 …clude(phar://%sopen_for_write_newfile_c.phar.tar/b/new.php): failed to open stream: phar error: "b… 55 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c.phar.tar/b/new.php' for inclu…
|
H A D | open_for_write_newfile_c_5_2.phpt | 2 Phar: fopen a .phar for writing (new file) tar-based 15 $phar = new Phar($fname); 31 $fp = fopen($alias . '/b/new.php', 'wb'); 35 include $alias . '/b/new.php'; 44 Warning: fopen(phar://%sopen_for_write_newfile_c_5_2.phar.tar/b/new.php): failed to open stream: ph… 51 …e(phar://%sopen_for_write_newfile_c_5_2.phar.tar/b/new.php): failed to open stream: phar error: "b… 53 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c_5_2.phar.tar/b/new.php' for i…
|