Home
last modified time | relevance | path

Searched refs:new (Results 251 – 275 of 4661) sorted by relevance

1...<<11121314151617181920>>...187

/PHP-5.4/ext/xmlreader/tests/
H A Dexpand.phpt6 $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 DReflectionMethod_getStaticVariables_basic.phpt24 $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 Dbug49719.phpt14 $b = new B;
15 $ref = new ReflectionClass($b);
33 $b2 = new ReflectionClass('B2');
36 var_dump($prop->getValue(new b2));
H A Dbug39884.phpt12 $test1 = new stubParamTest();
13 $test2 = new stubParamTest();
15 $refParam = new ReflectionParameter(array('stubParamTest', 'paramTest'), 'param');
H A DReflectionMethod_invokeArgs_basic.phpt16 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 Ddestructor_and_exceptions.phpt13 throw new exception("FailClass");
20 $a = new FailClass;
33 $o = new FailClass;
41 throw new FatalException("Damn");
/PHP-5.4/Zend/tests/
H A Dbug31102.phpt16 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 Dclass_alias_013.phpt11 new foo;
19 var_dump(new \test\baz\foo, new \test\baz\T\BAR);
H A Dexception_009.phpt18 $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 Dwrite13.phar.inc6 $phar = new Phar($fname);
8 $p = new Phar(__FILE__);
10 $p2 = new Phar(__FILE__);
H A Dwrite14.phar.inc6 $phar = new Phar($fname);
8 $p = new Phar(__FILE__);
10 $p2 = new Phar(__FILE__);
H A Dwrite10.phar.inc6 $phar = new Phar($fname);
8 $p = new Phar(__FILE__);
10 $p2 = new Phar(__FILE__);
/PHP-5.4/tests/lang/
H A Dbug26866.phpt12 throw new Exception('Exception!');
13 return new bar();
16 $foo = new foo();
/PHP-5.4/ext/phar/tests/
H A Dopen_for_write_newfile_b.phpt2 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 Dopen_for_write_newfile_b_5_2.phpt2 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 Dr2_groupB_002s.phpt9 $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"),
13new SoapParam(new SoapVar(34.345,XSD_FLOAT), "inputFloat")), array("soapaction"=>"http://soapinter…
/PHP-5.4/ext/spl/tests/
H A Diterator_003.phpt51 $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 Drecursiveiteratoriterator_getsubiterator_basic.phpt10 $sub_iterator = new RecursiveArrayIterator($sample_array);
11 $not_sub_iterator = new RecursiveArrayIterator($sample_array);
12 $iterator = new RecursiveIteratorIterator($sub_iterator);
H A DCallbackFilterIteratorTest.phpt29 '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 Darray_005.phpt51 $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 Darray_009a.phpt15 return new MyRecursiveArrayIterator($this->current());
21 $dir = new RecursiveIteratorIterator(new MyRecursiveArrayIterator($array), RecursiveIteratorIterato…
H A Diterator_020.phpt8 $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 Diterator_013.phpt8 $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 Dxslt011.phpt13 $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 Darsort_object2.phpt55 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"),

Completed in 33 milliseconds

1...<<11121314151617181920>>...187