/PHP-5.5/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-5.5/ext/date/tests/ |
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 | 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 | 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-5.5/Zend/tests/ |
H A D | bug26166.phpt | 20 $this->obj = new Foo(); 29 $o = new Bar; 46 $o = new None; 54 throw new Exception("This is an error!"); 58 $o = new Error;
|
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 | bug38772.phpt | 34 $a = new A(); 35 $b = new B(); 36 $c = new C(); 37 $d = new D();
|
H A D | exception_008.phpt | 9 throw new Exception("First"); 16 throw new Exception("Second"); 20 $ar = array(new TestFirst, new TestSecond);
|
H A D | bug31177-2.phpt | 7 if($n) throw new Exception("new"); 10 $x = new foo();
|
/PHP-5.5/ext/soap/tests/interop/Round2/GroupB/ |
H A D | r2_groupB_004s.phpt | 9 $param = new SoapParam(new SoapVar(array( 10 new SoapVar("arg", XSD_STRING, null, null, "varString"), 11 new SoapVar(34, XSD_INT, null, null, "varInt"), 12 new SoapVar(123.45, XSD_FLOAT, null, null, "varFloat"), 13 new SoapVar(array( 14 new SoapVar("arg2", XSD_STRING, null, null, "varString"), 15 new SoapVar(342, XSD_INT, null, null, "varInt"), 16 new SoapVar(123.452, XSD_FLOAT, null, null, "varFloat") 19 $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=…
|
H A D | r2_groupB_005s.phpt | 9 $param = new SoapParam(new SoapVar(array( 10 new SoapVar("arg", XSD_STRING, null, null, "varString"), 11 new SoapVar(34, XSD_INT, null, null, "varInt"), 12 new SoapVar(325.325, XSD_FLOAT, null, null, "varFloat"), 13 new SoapVar(array( 14 new SoapVar("red", XSD_STRING), 15 new SoapVar("blue", XSD_STRING), 16 new SoapVar("green", XSD_STRING), 19 $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=…
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | 007.phpt | 92 $a = array(new cr(9),new cr(12),new cr(23),new cr(4),new cr(-15),); 93 $b = array(new cr(9),new cr(22),new cr( 3),new cr(4),new cr(-15),); 96 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1=> new cr(4), 2 => new cr(-15… 97 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr( 3), 1=> new cr(4), 2 => new cr(-15…
|
/PHP-5.5/ext/spl/tests/ |
H A D | regexiterator_getregex.phpt | 9 $iterator = new ArrayIterator($array); 12 $regexIterator = new RegexIterator($iterator, '/.at/'); 16 $regexIterator = new RegexIterator($iterator, '//'); 20 $regexIterator = new RegexIterator($iterator, '|\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b|');
|
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);
|
H A D | iterator_037.phpt | 9 $it = new CachingIterator($ar, 0); 55 $ar = new MyArrayIterator(array(1, 2, 3)); 61 $ar = new MyArrayIterator(array(new MyItem(1), new MyItem(2), new MyItem(3))); 73 $it = new CachingIterator($ar, CachingIterator::CALL_TOSTRING); 82 $it = new CachingIterator($ar, CachingIterator::TOSTRING_USE_INNER);
|
H A D | bug53144.phpt | 6 $o1 = new StdClass; 7 $o2 = new StdClass; 9 $b = new SplObjectStorage();
|
/PHP-5.5/ext/reflection/tests/ |
H A D | ReflectionFunction_construct.001.phpt | 9 $a = new ReflectionFunction(array(1, 2, 3)); 11 $a = new ReflectionFunction('nonExistentFunction'); 15 $a = new ReflectionFunction(); 16 $a = new ReflectionFunction(1, 2);
|
H A D | ReflectionParameter_invalidMethodInConstructor.phpt | 8 new ReflectionParameter (array ('A', 'b'), 0); 13 new ReflectionParameter (array ('C', 'b'), 0); 18 new ReflectionParameter (array (new C, 'b'), 0);
|
/PHP-5.5/ext/phar/tests/zip/ |
H A D | open_for_write_newfile_b.phpt | 2 Phar: fopen a .phar for writing (new file) zip-based 17 $phar = new Phar($fname); 39 $fp = fopen($alias . '/b/new.php', 'wb'); 44 include $alias . '/b/new.php'; 52 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar e… 59 …clude(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar error: "b… 61 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.zip/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) zip-based 15 $phar = new Phar($fname); 37 $fp = fopen($alias . '/b/new.php', 'wb'); 42 include $alias . '/b/new.php'; 50 Warning: fopen(phar://%sopen_for_write_newfile_b_5_2.phar.zip/b/new.php): failed to open stream: ph… 57 …e(phar://%sopen_for_write_newfile_b_5_2.phar.zip/b/new.php): failed to open stream: phar error: "b… 59 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b_5_2.phar.zip/b/new.php' for i…
|
/PHP-5.5/ext/phar/tests/tar/ |
H A D | open_for_write_newfile_b.phpt | 2 Phar: fopen a .phar for writing (new file) tar-based 17 $phar = new Phar($fname); 39 $fp = fopen($alias . '/b/new.php', 'wb'); 44 include $alias . '/b/new.php'; 53 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar e… 60 …clude(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar error: "b… 62 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.tar/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) tar-based 15 $phar = new Phar($fname); 37 $fp = fopen($alias . '/b/new.php', 'wb'); 42 include $alias . '/b/new.php'; 51 Warning: fopen(phar://%sopen_for_write_newfile_b_5_2.phar.tar/b/new.php): failed to open stream: ph… 58 …e(phar://%sopen_for_write_newfile_b_5_2.phar.tar/b/new.php): failed to open stream: phar error: "b… 60 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b_5_2.phar.tar/b/new.php' for i…
|
/PHP-5.5/ext/phar/tests/ |
H A D | test_signaturealgos.phpt | 16 $a = new Phar(dirname(__FILE__) . '/files/sha1.phar'); 19 $a = new Phar(dirname(__FILE__) . '/files/sha512.phar'); 22 $a = new Phar(dirname(__FILE__) . '/files/sha256.phar'); 25 $a = new Phar(dirname(__FILE__) . '/files/md5.phar'); 28 $a = new Phar(dirname(__FILE__) . '/files/openssl.phar');
|
/PHP-5.5/ext/soap/tests/bugs/ |
H A D | bug50762.phpt | 21 $this->server = new SoapServer($wsdl, $options); 22 $this->server->setObject(new testSoap()); 35 $cl = new LocalSoapClient(dirname(__FILE__).'/bug50762.wsdl', array('cache_wsdl'=>WSDL_CACHE_NONE, … 43 $cl->__setSoapHeaders(array(new SoapHeader('http://sova.pronto.ru/', 'authToken', new authToken('to…
|