/PHP-7.3/Zend/tests/ |
H A D | bug63635.phpt | 24 $top = new Node(); 26 $ci = new Node($top); 28 $cj = new Node($ci); 30 $ck = new Node($cj);
|
H A D | objects_031.phpt | 6 $x[] = clone new stdclass; 7 $x[] = clone new stdclass; 8 $x[] = clone new stdclass;
|
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 | bug26166.phpt | 20 $this->obj = new Foo(); 29 $o = new Bar; 46 $o = new NoneTest; 54 throw new Exception("This is an error!"); 58 $o = new ErrorTest;
|
H A D | bug67922.phpt | 8 return new stdClass; 12 $b = new stdClass; 13 $b->c = new C;
|
H A D | temporary_cleaning_001.phpt | 7 throw new Exception(); 12 $y = new stdClass; 13 while ($x-- && new stdClass) {
|
H A D | bug31177-2.phpt | 7 if($n) throw new Exception("new"); 10 $x = new foo();
|
H A D | ns_070.phpt | 14 new bar(new \stdclass); 15 new bar(null);
|
H A D | bug38772.phpt | 34 $a = new A(); 35 $b = new B(); 36 $c = new C(); 37 $d = new D();
|
H A D | closure_042.phpt | 7 $d = $c->bindTo(new stdClass); 9 $rm = new ReflectionFunction($d); 13 $d = $c->bindTo(new stdClass, NULL); 15 $rm = new ReflectionFunction($d);
|
H A D | exception_007.phpt | 8 throw new Exception("First", 1, new Exception("Another", 0, NULL)); 11 throw new Exception("Second", 2, $e); 15 throw new Exception("Third", 3, $e);
|
/PHP-7.3/ext/spl/tests/ |
H A D | fixedarray_005.phpt | 7 $a = new SplFixedArray(new stdClass); 13 $a = new SplFixedArray('FOO'); 19 $a = new SplFixedArray('');
|
H A D | bug53144.phpt | 6 $o1 = new StdClass; 7 $o2 = new StdClass; 9 $b = new SplObjectStorage();
|
H A D | spl_limit_iterator_check_limits.phpt | 9 $arrayIterator = new ArrayIterator($array); 12 $limitIterator = new LimitIterator($arrayIterator, -1); 19 $limitIterator = new LimitIterator($arrayIterator, 0, -2); 25 $limitIterator = new LimitIterator($arrayIterator, 0, -1);
|
/PHP-7.3/ext/date/tests/ |
H A D | bug65548.phpt | 9 $iToday = new DateTimeImmutable('today'); 10 $iTomorrow = new DateTimeImmutable('tomorrow'); 12 $mToday = new DateTime('today'); 13 $mTomorrow = new DateTime('tomorrow');
|
H A D | DatePeriod_properties1.phpt | 8 $start = new DateTime; 9 $interval = new DateInterval('P1D'); 10 $end = new DateTime; 11 $period = new DatePeriod($start, $interval, $end);
|
H A D | date_period-immutable.phpt | 6 $db1 = new DateTimeImmutable( '2008-01-01' ); 7 $db2 = new DateTime( '2008-01-01' ); 8 $de = new DateTime( '2008-03-31' ); 11 foreach ( new DatePeriod( $db1, $di, $de ) as $dt ) 19 foreach ( new DatePeriod( $db2, $di, $de ) as $dt )
|
H A D | DateTime_extends_basic2.phpt | 9 echo "*** Testing new DateTime() : with user space __construct magic method ***\n"; 17 $dtz = new DateTimeZone(date_default_timezone_get()); 23 $d = new DateTimeExt("1967-05-01 22:30:41"); 29 *** Testing new DateTime() : with user space __construct magic method ***
|
/PHP-7.3/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-7.3/ext/phar/tests/tar/ |
H A D | open_for_write_newfile_b.phpt | 2 Phar: fopen a .phar for writing (new file) tar-based 16 $phar = new Phar($fname); 38 $fp = fopen($alias . '/b/new.php', 'wb'); 43 include $alias . '/b/new.php'; 51 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar e… 58 …clude(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar error: "b… 60 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.tar/b/new.php' for inclu…
|
/PHP-7.3/ext/phar/tests/zip/ |
H A D | open_for_write_newfile_b.phpt | 2 Phar: fopen a .phar for writing (new file) zip-based 16 $phar = new Phar($fname); 38 $fp = fopen($alias . '/b/new.php', 'wb'); 43 include $alias . '/b/new.php'; 50 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar e… 57 …clude(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar error: "b… 59 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.zip/b/new.php' for inclu…
|
/PHP-7.3/ext/reflection/tests/ |
H A D | ReflectionMethod_invoke_basic.phpt | 16 throw new Exception("Called willThrow()"); 41 $foo = new ReflectionMethod('TestClass', 'foo'); 42 $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); 43 $staticMethod = new ReflectionMethod('TestClass::staticMethod'); 44 $privateMethod = new ReflectionMethod("TestClass::privateMethod"); 45 $methodThatThrows = new ReflectionMethod("TestClass::willThrow"); 47 $testClassInstance = new TestClass(); 65 var_dump($staticMethod->invoke(new stdClass()));
|
H A D | ReflectionFunction_construct.001.phpt | 10 $a = new ReflectionFunction(array(1, 2, 3)); 16 $a = new ReflectionFunction('nonExistentFunction'); 21 $a = new ReflectionFunction(); 26 $a = new ReflectionFunction(1, 2); 31 $a = new ReflectionFunction([]);
|
/PHP-7.3/ext/mysqli/tests/ |
H A D | mysqli_connect_oo.phpt | 2 new mysqli() 16 $obj = new stdClass(); 41 if (!is_object($mysqli = new mysqli($host, $user)) || (0 !== mysqli_connect_errno())) { 48 if (!is_object($mysqli = new mysqli($host)) || (0 !== mysqli_connect_errno())) { 55 if (!is_object($mysqli = new mysqli()) || (0 !== mysqli_connect_errno())) { 58 // There shall be NO connection! Using new mysqli(void) shall not use defaults for a connection! 70 if (!is_object($mysqli = new mysqli())) { 100 $mysqli = new mysqli($host, $user, $passwd, $db, $port); 109 $mysqli = new mysqli($host, $user, $passwd, $db); 118 $mysqli = new mysqli($host, $user); [all …]
|
/PHP-7.3/Zend/tests/generators/ |
H A D | throw_rethrow.phpt | 13 throw new LogicException('new throw'); 18 var_dump($gen->throw(new RuntimeException('throw'))); 28 Fatal error: Uncaught LogicException: new throw in %s:%d
|