Home
last modified time | relevance | path

Searched refs:new (Results 651 – 675 of 4661) sorted by relevance

1...<<21222324252627282930>>...187

/PHP-5.4/Zend/tests/
H A Dobjects_027.phpt2 Testing 'new static;' calling parent method
8 var_dump(new static);
18 $foo = new foo;
H A Dbug29689.phpt43 $bar = new bar;
46 $baz = new baz();
49 $baz = new baz2();
H A Dclosure_014.phpt20 $x = new C1();
33 $x = new C2();
55 $x = new C3();
H A Dclosure_041.phpt37 $a = new A();
56 $d = $staticUnscoped->bindTo(new A); $d(); echo "\n";
57 $d = $nonstaticUnscoped->bindTo(new A); $d(); echo " (should be scoped to dummy class)\n";
58 $d = $staticScoped->bindTo(new A); $d(); echo "\n";
59 $d = $nonstaticScoped->bindTo(new A); $d(); echo "\n";
62 $d = $nonstaticUnscoped->bindTo(new B); $d(); echo " (should be scoped to dummy class)\n";
63 $d = $nonstaticScoped->bindTo(new B); $d(); echo "\n";
H A Dns_055.phpt19 $foo = new Foo();
20 $ex = new \Exception();
/PHP-5.4/ext/xmlreader/tests/
H A D007.phpt14 $reader = new XMLReader();
29 $reader = new XMLReader();
43 $reader = new XMLReader();
/PHP-5.4/ext/phar/tests/
H A Dphar_buildfromiterator3.phpt39 $phar = new Phar(dirname(__FILE__) . '/buildfromiterator.phar');
40 $phar->buildFromIterator(new myIterator(array()), new stdClass);
H A Dtest_unset.phpt15 $phar = new Phar($fname); // no entries, never flushed
20 $phar = new Phar($fname2);
28 $phar = new Phar($fname);
/PHP-5.4/ext/phar/tests/tar/
H A Dtar_makebz2.phpt2 Phar: tar-based phar, make new bzipped tar
16 $phar = new Phar($fname);
23 $phar2 = new Phar($fname3);
H A Dtar_makegz.phpt2 Phar: tar-based phar, make new gzipped tar
16 $phar = new Phar($fname);
24 $phar2 = new Phar($fname3);
/PHP-5.4/ext/soap/tests/
H A Dclassmap004.phpt33 return new B(5);
40 $this->server = new SoapServer($wsdl, $options);
53 $client = new LocalSoapClient(dirname(__FILE__)."/classmap003.wsdl",
/PHP-5.4/ext/spl/tests/
H A Dclass_implements_basic2.phpt26 s_var_dump(class_implements(new foobarImpl));
28 s_var_dump(class_implements(new fooViaBarImpl));
30 s_var_dump(class_implements(new fooExtended));
H A DSplDoublyLinkedList_isEmpty_not-empty.phpt7 // Create a new Doubly Linked List
8 $dll = new SplDoublyLinkedList();
H A Darray_002.phpt10 $object = new ArrayObject($array);
13 $arrayObject = new ArrayObject($object);
H A Dbug36287.phpt6 $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("."), true);
/PHP-5.4/ext/spl/internal/
H A Dmultipleiterator.inc39 /** Construct a new empty MultipleIterator
44 $this->iterators = new SplObjectStorage();
54 /** @param $flags new flags. */
60 /** @param $iter new Iterator to attach.
73 throw new IllegalValueException('Inf must be NULL, integer or string');
79 throw new IllegalValueException('Key duplication error');
173 throw new IllegalValueException('Sub-Iterator is associated with NULL');
184 throw new RuntimeException('Called current() with non valid sub iterator');
214 throw new LogicException('Called key() with non valid sub iterator');
/PHP-5.4/ext/mysqli/tests/
H A Dmysqli_class_mysqli_result_interface.phpt14 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
113 if (!is_object($res = new mysqli_result($link)))
122 if (!is_object($res = new mysqli_result($link)))
125 if (!is_object($res = new mysqli_result($link, MYSQLI_STORE_RESULT)))
128 if (!is_object($res = new mysqli_result($link, MYSQLI_USE_RESULT)))
131 if (!is_object($res = new mysqli_result($link, 'invalid')))
141 if (!is_object($res = new mysqli_result($link, $mode)))
149 if (!is_object($res = new mysqli_result('foo')))
152 if (!is_object($res = @new mysqli_result($link, MYSQLI_STORE_RESULT, 1)))
/PHP-5.4/tests/lang/
H A DforeachLoopObjects.003.phpt15 $obj = new C;
23 $obj = new C;
31 $obj = new C;
38 $obj = new C;
41 $newPropName = "new$counter";
52 $obj = new C;
55 $newPropName = "new$counter";
66 $obj = new C;
76 $obj = new C;
/PHP-5.4/ext/phar/tests/cache_list/files/
H A Dwrite18.phar.inc6 $phar = new Phar($fname);
8 $p = new Phar(__FILE__);
H A Dwrite23.phar.inc6 $phar = new Phar($fname);
8 $p = new Phar(__FILE__);
H A Dwrite2.phar2 $phar = new Phar(__FILE__);
6 $phar2 = new Phar(__FILE__);
/PHP-5.4/ext/soap/tests/bugs/
H A Dbug44811.phpt2 Bug #44811 (Improve error messages when creating new SoapClient which contains invalid data)
10 $x = new SoapClient('http://slashdot.org');
/PHP-5.4/ext/reflection/tests/
H A Dbug40794.phpt6 $obj = new stdClass();
11 $reflect = new ReflectionObject($obj);
H A Dclosures_003_v1.phpt8 $method = new ReflectionFunction ($closure);
15 $parameter = new ReflectionParameter ($closure, 'b');
/PHP-5.4/tests/classes/
H A Dtostring_003.phpt10 throw new Exception("Damn!");
22 $o = new Test;

Completed in 26 milliseconds

1...<<21222324252627282930>>...187