Home
last modified time | relevance | path

Searched refs:new (Results 326 – 350 of 4661) sorted by relevance

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

/PHP-5.4/ext/date/tests/
H A DDateTime_extends_basic3.phpt8 echo "*** Testing new DateTime() : with user format() method ***\n";
18 $d = new DateTimeExt("1967-05-01 22:30:41");
24 *** Testing new DateTime() : with user format() method ***
H A Dbug54340.phpt7 $interval = new DateInterval('P1D');
9 $dt = new DateTime('first day of January 2011');
15 $dt = new DateTime('first day of January 2011');
H A Dbug55253.phpt10 $interval = new DateInterval('PT2H1M');
12 $date3 = new DateTime('2010-10-04 02:18:48');
13 $date2 = new DateTime('2010-10-04 02:18:48 EDT');
26 $date3 = new DateTime('2010-10-04 04:19:48');
27 $date2 = new DateTime('2010-10-04 04:19:48 EDT');
H A Dbug44562.phpt9 $dp = new DatePeriod('2D');
16 $begin = new DateTime( "2008-07-20T22:44:53+0200" );
19 $dp = new DatePeriod( $begin, $interval, 10 );
/PHP-5.4/ext/spl/tests/
H A Drecursiveiteratoriterator_beginiteration_basic.phpt9 $sub_iterator = new RecursiveArrayIterator($sample_array);
11 $iterator = new RecursiveIteratorIterator($sub_iterator);
22 $iterator = new SkipsFirstElementRecursiveIteratorIterator($sub_iterator);
H A Drecursiveiteratoriterator_enditeration_basic.phpt9 $sub_iterator = new RecursiveArrayIterator($sample_array);
11 $iterator = new RecursiveIteratorIterator($sub_iterator);
21 $iterator = new EndIterationRecursiveIteratorIterator($sub_iterator);
H A Dbug45826.phpt5 $o = new ArrayObject();
6 $y = new StdClass;
24 $o2 = new ArrayObject();
43 $o = new ArrayObject2();
44 $y = new StdClass;
62 $o2 = new ArrayObject2();
H A Diterator_004.phpt61 foreach (new LimitIterator(new NumericArrayIterator($a), 1, 3) as $v)
68 foreach(new LimitIterator(new SeekableNumericArrayIterator($a), 1, 3) as $v)
75 $l = new LimitIterator(new SeekableNumericArrayIterator($a));
H A DSplObjectStorage_unserialize_nested.phpt5 $o = new StdClass();
6 $a = new StdClass();
10 $so = new SplObjectStorage();
H A Dbug42703.phpt17 throw new Exception('boo');
23 $it = new BlaIterator();
24 $itit = new IteratorIterator($it);
H A Dspl_heap_isempty.phpt8 $h = new SplMaxHeap();
9 echo "Checking a new heap is empty: ";
19 Checking a new heap is empty: bool(true)
/PHP-5.4/ext/dom/tests/
H A DDOMComment_construct_basic_001.phpt10 $dom = new DOMDocument('1.0', 'UTF-8');
11 $element = $dom->appendChild(new DOMElement('root'));
12 $comment = new DOMComment("This is the first comment.");
/PHP-5.4/Zend/tests/
H A Dbug48408.phpt12 throw new Exception;
15 $b = new B;
16 $c = new C;
H A Dbug60909_2.phpt6 set_error_handler(function($errno, $errstr, $errfile, $errline){throw new Exception("Foo");});
10 throw new Exception('Oops, I cannot do this');
14 $bad = new Bad();
H A Dbug54268.phpt25 $this->test = new DestructableObject;
32 $x = new Test();
33 Test::$mystatic = new DestructorCreator();
/PHP-5.4/ext/reflection/tests/
H A Dbug52854.phpt7 $c = new ReflectionClass('Test');
8 var_dump(new Test);
9 var_dump(new Test());
H A Dbug61388.phpt5 $x = new ArrayObject();
8 $reflObj = new ReflectionObject($x);
12 $reflObj = new ReflectionObject($x);
H A DReflectionObject_getName_error.phpt6 $myInstance = new C;
7 $r2 = new ReflectionObject($myInstance);
9 $r3 = new ReflectionObject($r2);
/PHP-5.4/ext/standard/tests/serialize/
H A Dbug65806.phpt42 $objA = new myObjA();
43 $objB = new myObjB();
44 $objC = new myObjC();
46 $objB->attrA = new ArrayIterator();
52 $list = new myList($objC);
/PHP-5.4/ext/soap/tests/
H A Dany.phpt17 $struct = new SOAPComplexType('arg',34,325.325);
25 …return array("return" => array("any" => array("SOAPComplexType"=>new SoapVar($struct, SOAP_ENC_OBJ…
34 $this->server = new SoapServer($wsdl, $options);
47 $client = new TestSoapClient(dirname(__FILE__)."/interop/Round4/GroupI/round4_groupI_xsd.wsdl",
53 …"any"=>new SoapVar($struct, SOAP_ENC_OBJECT, "SOAPComplexType", "http://soapinterop.org/xsd", "SOA…
/PHP-5.4/ext/intl/tests/
H A Ddateformat_calendars.phpt13 $fmt1 = new IntlDateFormatter('en_US',
18 $fmt2 = new IntlDateFormatter('en_US',
23 $fmt3 = new IntlDateFormatter('en_US@calendar=hebrew',
32 new IntlDateFormatter('en_US@calendar=hebrew',
/PHP-5.4/ext/pdo_sqlite/tests/
H A Dbug43831.phpt23 $foo = new Foo("sqlite::memory:");
28 $bar = new Bar("sqlite::memory:");
34 $bar = new PDO("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true));
35 $baz = new MyPDO("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true));
/PHP-5.4/tests/classes/
H A Dinheritance_002.phpt48 $c4= new Child_php4();
51 $c5= new Child_php5();
54 $cm= new Child_mx1();
57 $cm= new Child_mx2();
/PHP-5.4/ext/imap/tests/
H A Dimap_mail_copy_basic.phpt21 echo "Create a new mailbox for test\n";
28 echo "Msg Count in new mailbox: ". $check->Nmsgs . "\n";
41 Create a new mailbox for test
44 Msg Count in new mailbox: 1
H A Dimap_mail_move_basic.phpt21 echo "Create a new mailbox for test\n";
28 echo "Msg Count in new mailbox: ". $check->Nmsgs . "\n";
41 Create a new mailbox for test
44 Msg Count in new mailbox: 1

Completed in 73 milliseconds

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