/PHP-5.4/ext/xmlreader/tests/ |
H A D | expand.phpt | 6 $reader = new XMLReader(); 16 <books><book>new book</book></books>'; 18 $dom = new DOMDocument(); 21 $reader = new XMLReader();
|
/PHP-5.4/ext/reflection/tests/ |
H A D | ReflectionMethod_getStaticVariables_basic.phpt | 24 $methodInfo = new ReflectionMethod('TestClass::foo'); 28 $methodInfo = new ReflectionMethod('TestClass::bar'); 32 $methodInfo = new ReflectionMethod('TestClass::noStatics'); 36 $methodInfo = new ReflectionMethod('ReflectionClass::getName');
|
H A D | bug49719.phpt | 14 $b = new B; 15 $ref = new ReflectionClass($b); 33 $b2 = new ReflectionClass('B2'); 36 var_dump($prop->getValue(new b2));
|
H A D | bug39884.phpt | 12 $test1 = new stubParamTest(); 13 $test2 = new stubParamTest(); 15 $refParam = new ReflectionParameter(array('stubParamTest', 'paramTest'), 'param');
|
H A D | ReflectionMethod_invokeArgs_basic.phpt | 16 throw new Exception("Called willThrow()"); 25 $testClassInstance = new TestClass(); 28 $foo = new ReflectionMethod($testClassInstance, 'foo'); 29 $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); 30 $methodThatThrows = new ReflectionMethod("TestClass::willThrow");
|
/PHP-5.4/tests/classes/ |
H A D | destructor_and_exceptions.phpt | 13 throw new exception("FailClass"); 20 $a = new FailClass; 33 $o = new FailClass; 41 throw new FatalException("Damn");
|
/PHP-5.4/Zend/tests/ |
H A D | bug31102.phpt | 16 eval("class $class { function __construct(){throw new Exception('$class::__construct');}}"); 19 eval("class $class { function __construct(){throw new Exception('$class::__construct');}}"); 20 throw new Exception(__METHOD__); 31 eval("\$bug = new Test$test();");
|
H A D | class_alias_013.phpt | 11 new foo; 19 var_dump(new \test\baz\foo, new \test\baz\T\BAR);
|
H A D | exception_009.phpt | 18 $this->message = new stdclass ; 19 $this->file = new my_file ; 24 throw new my_exception;
|
/PHP-5.4/ext/phar/tests/cache_list/files/ |
H A D | write13.phar.inc | 6 $phar = new Phar($fname); 8 $p = new Phar(__FILE__); 10 $p2 = new Phar(__FILE__);
|
H A D | write14.phar.inc | 6 $phar = new Phar($fname); 8 $p = new Phar(__FILE__); 10 $p2 = new Phar(__FILE__);
|
H A D | write10.phar.inc | 6 $phar = new Phar($fname); 8 $p = new Phar(__FILE__); 10 $p2 = new Phar(__FILE__);
|
/PHP-5.4/tests/lang/ |
H A D | bug26866.phpt | 12 throw new Exception('Exception!'); 13 return new bar(); 16 $foo = new foo();
|
/PHP-5.4/ext/phar/tests/ |
H A D | open_for_write_newfile_b.phpt | 2 Phar: fopen a .phar for writing (new file) 29 $fp = fopen($pname . '/b/new.php', 'wb'); 33 include $pname . '/b/new.php'; 41 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.php/b/new.php): failed to open stream: phar e… 48 …clude(phar://%sopen_for_write_newfile_b.phar.php/b/new.php): failed to open stream: phar error: "b… 50 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.php/b/new.php' for inclu…
|
H A D | open_for_write_newfile_b_5_2.phpt | 2 Phar: fopen a .phar for writing (new file) 27 $fp = fopen($pname . '/b/new.php', 'wb'); 31 include $pname . '/b/new.php'; 39 Warning: fopen(phar://%sopen_for_write_newfile_b_5_2.phar.php/b/new.php): failed to open stream: ph… 46 …e(phar://%sopen_for_write_newfile_b_5_2.phar.php/b/new.php): failed to open stream: phar error: "b… 48 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b_5_2.phar.php/b/new.php' for i…
|
/PHP-5.4/ext/soap/tests/interop/Round2/GroupB/ |
H A D | r2_groupB_002s.phpt | 9 $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=… 11 new SoapParam(new SoapVar("arg",XSD_STRING), "inputString"), 12 new SoapParam(new SoapVar(34,XSD_INT), "inputInteger"), 13 …new SoapParam(new SoapVar(34.345,XSD_FLOAT), "inputFloat")), array("soapaction"=>"http://soapinter…
|
/PHP-5.4/ext/spl/tests/ |
H A D | iterator_003.phpt | 51 $this->students = new ArrayObject(array()); 73 return new CachingIterator($this->students->getIterator(), true); 77 $students = new StudentList(); 78 $students->add(new Student('01234123', 'Joe')); 79 $students->add(new Student('00000014', 'Bob')); 80 $students->add(new Student('00000014', 'Foo'));
|
H A D | recursiveiteratoriterator_getsubiterator_basic.phpt | 10 $sub_iterator = new RecursiveArrayIterator($sample_array); 11 $not_sub_iterator = new RecursiveArrayIterator($sample_array); 12 $iterator = new RecursiveIteratorIterator($sub_iterator);
|
H A D | CallbackFilterIteratorTest.phpt | 29 'instance method' => function() { return array(new A, 'test'); }, 39 $it = new ArrayIterator(range(1, 5)); 40 $it = new CallbackFilterIterator($it, $callback); 50 $it = new ArrayIterator(range(1, 5)); 51 $it = new CallbackFilterIterator($it, $test());
|
H A D | array_005.phpt | 51 $this->students = new ArrayObject(array()); 77 $students = new StudentList(); 78 $students->add(new Student('01234123', 'Joe')); 79 $students->add(new Student('00000014', 'Bob')); 80 $students->add(new Student('00000014', 'Foo'));
|
H A D | array_009a.phpt | 15 return new MyRecursiveArrayIterator($this->current()); 21 $dir = new RecursiveIteratorIterator(new MyRecursiveArrayIterator($array), RecursiveIteratorIterato…
|
H A D | iterator_020.phpt | 8 $it = new AppendIterator; 17 $it->append(new ArrayIterator(array(0 => 'A', 1 => 'B'))); 33 $it->append(new ArrayIterator(array(2 => 'C', 3 => 'D'))); 35 foreach(new NoRewindIterator($it) as $key=>$val)
|
H A D | iterator_013.phpt | 8 $it = new AppendIterator; 17 $it->append(new ArrayIterator(array(0 => 'A', 1 => 'B'))); 33 $it->append(new ArrayIterator(array(2 => 'C', 3 => 'D'))); 35 foreach(new NoRewindIterator($it) as $key=>$val)
|
/PHP-5.4/ext/xsl/tests/ |
H A D | xslt011.phpt | 13 $dom = new domDocument(); 15 $proc = new xsltprocessor; 18 $xml = new DomDocument(); 34 $dom = new domdocument; 40 return new foo();
|
/PHP-5.4/ext/standard/tests/array/ |
H A D | arsort_object2.phpt | 55 1 => new for_integer_arsort(11, 33,2), 2 => new for_integer_asort(44, 66,3), 56 3 => new for_integer_arsort(23, 32,6), 4 => new for_integer_asort(-88, -5,-4), 61 "a" => new for_string_arsort("axx","AXX","d"), "b" => new for_string_asort("T", "t","q"), 62 "c" => new for_string_arsort("w", "W","c"), "d" => new for_string_asort("PY", "py","s"),
|