Home
last modified time | relevance | path

Searched refs:new (Results 276 – 300 of 4661) sorted by relevance

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

/PHP-5.4/Zend/tests/traits/
H A Dnoctor001.phpt16 $rfoofoo = new ReflectionMethod('Foo::Foo');
19 $rbarfoo = new ReflectionMethod('Bar::Foo');
22 $rbarbar = new ReflectionMethod('Bar::Bar');
/PHP-5.4/ext/spl/tests/
H A Diterator_069.phpt7 $arrOb = new ArrayObject($arr);
9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
11 $recItIt = new RecursiveIteratorIterator($recArrIt);
H A DarrayObject_magicMethods4.phpt35 $obj = new C;
36 $ao = new UsesMagic($obj);
39 $ao['dynamic'] = 'new';
40 $ao['dynamic'] = 'new.changed';
86 string(11) "new.changed"
103 string(11) "new.changed"
112 string(11) "new.changed"
124 string(11) "new.changed"
141 string(11) "new.changed"
160 string(11) "new.changed"
[all …]
H A DarrayObject_magicMethods6.phpt35 $obj = new C;
36 $ao = new UsesMagic($obj, ArrayObject::ARRAY_AS_PROPS);
39 $ao->dynamic = 'new';
40 $ao->dynamic = 'new.changed';
86 string(11) "new.changed"
103 string(11) "new.changed"
112 string(11) "new.changed"
124 string(11) "new.changed"
141 string(11) "new.changed"
160 string(11) "new.changed"
[all …]
H A Darray_011.phpt7 //foreach (new ArrayIterator($a) as $k => $v)
8 foreach (new LimitIterator(new ArrayIterator($a), 1, 3) as $k => $v)
H A DarrayObject_exchangeArray_basic2.phpt6 $ao = new ArrayObject();
12 $obj = new stdClass;
19 $obj = new ArrayObject(array('key'=>'ArrayObject element'));
25 $obj = new ArrayIterator(array('key'=>'ArrayIterator element'));
31 $obj = new ArrayObject(new ArrayObject(array('key'=>'nested ArrayObject element')));
H A Dbug53071.phpt12 $myA = new myClass();
13 $myB = new SplObjectStorage();
14 $myC = new myClass();
H A Diterator_040.phpt15 $it = new RecursiveArrayIterator($ar);
16 $it = new MyRecursiveFilterIterator($it);
17 $it = new RecursiveIteratorIterator($it);
H A Diterator_071.phpt7 $arrOb = new ArrayObject($arr);
9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::CHILD_FIRST);
H A DarrayObject___construct_basic6.phpt10 $ao = new ArrayObject(array(1,2,3));
14 $ao = new ArrayObject(array(1,2,3), ArrayObject::STD_PROP_LIST);
18 $ao = new MyArrayObject(array(1,2,3));
21 $ao = new MyArrayObject(array(1,2,3), ArrayObject::STD_PROP_LIST);
/PHP-5.4/ext/reflection/tests/
H A DReflectionClass_isInterface_basic.phpt13 $reflectionClass = new ReflectionClass('TestInterface');
14 $reflectionClass2 = new ReflectionClass('TestClass');
15 $reflectionClass3 = new ReflectionClass('DerivedInterface');
H A DReflectionProperty_getValue_error.phpt17 $instance = new TestClass();
18 $instanceWithNoProperties = new AnotherClass();
19 $propInfo = new ReflectionProperty('TestClass', 'pub2');
31 $propInfo = new ReflectionProperty('TestClass', 'stat');
41 $propInfo = new ReflectionProperty('TestClass', 'prot');
49 $propInfo = new ReflectionProperty('TestClass', 'pub2');
/PHP-5.4/ext/xsl/tests/
H A Dprepare.inc2 $dom = new domDocument;
8 $xsl = new domDocument;
14 $proc = new xsltprocessor;
/PHP-5.4/Zend/tests/
H A Dbug46308.phpt19 main::$dataAccessor = new dataAccessor;
27 main::$dummy = new dummy();
28 main::$dataAccessor = new relay();
H A Dcallable_type_hint_002.phpt13 $rf = new ReflectionFunction("foo");
16 $rm = new ReflectionMethod("bar", "foo");
19 $rc = new ReflectionFunction($closure);
H A Dbug55156.phpt10 $x = new \ReflectionFunction('foo\test');
19 $x = new \ReflectionClass('foo\bar');
22 $x = new \ReflectionClass('foo\foo');
H A Dclone_002.phpt6 $a = clone clone $b = new stdClass;
10 $c = clone clone clone $b = new stdClass;
15 $d = clone $a = $b = new foo;
/PHP-5.4/ext/standard/tests/serialize/
H A Dbug64354_3.phpt7 throw new Exception("Failed");
20 $data = array(new A, new B);
H A Dbug28325.phpt14 $a = new a();
15 $a->b = new b();
16 $a->b->c = new c();
/PHP-5.4/ext/phar/phar/
H A Ddirectorygraphiterator.inc22 new RecursiveCachingIterator(
23 new ParentIterator(
24 new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME
/PHP-5.4/ext/spl/examples/
H A Ddirectorygraphiterator.inc22 new RecursiveCachingIterator(
23 new ParentIterator(
24 new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME
/PHP-5.4/ext/imap/tests/
H A Dimap_createmailbox_basic.phpt10 * Description: Creates a new mailbox specified by mailbox .
33 echo "Your new mailbox '$newname' has the following status:\n";
41 echo "imap_status on new mailbox failed: " . imap_last_error() . "\n";
47 echo "imap_deletemailbox on new mailbox failed: " . implode("\n", imap_errors()) . "\n";
51 echo "could not create new mailbox: " . implode("\n", imap_errors()) . "\n";
62 Your new mailbox 'phpnewbox' has the following status:
/PHP-5.4/ext/date/tests/
H A Dbug45529.phpt6 $tz1 = new DateTimeZone('UTC');
10 $d = new DateTime('2008-01-01 12:00:00+0200');
13 $d = new DateTime('2008-01-01 12:00:00+0200');
/PHP-5.4/ext/phar/tests/tar/
H A Dcreate_new_and_modify.phpt16 file_put_contents($pname . '/a.php', "brand new!\n");
18 $phar = new Phar($fname);
27 $phar = new Phar($fname);
41 brand new!
/PHP-5.4/ext/phar/tests/zip/
H A Dcreate_new_and_modify.phpt16 file_put_contents($pname . '/a.php', "brand new!\n");
18 $phar = new Phar($fname);
27 $phar = new Phar($fname);
41 brand new!

Completed in 27 milliseconds

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