Home
last modified time | relevance | path

Searched refs:new (Results 301 – 325 of 4661) sorted by relevance

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

/PHP-5.4/Zend/tests/
H A Dbug45805.phpt11 throw new RuntimeException;
23 $obj = new A;
28 $m = new ReflectionMethod('B', 'foo');
37 $o = new B;
H A Dns_071.phpt14 new bar(null);
15 new bar(new \stdclass);
/PHP-5.4/ext/phar/tests/
H A Dpharfileinfo_construct.phpt14 $a = new PharFileInfo($pname . '/oops');
20 $a = new PharFileInfo(array());
22 $a = new Phar($fname);
27 $a = new PharFileInfo($pname . '/oops/I/do/not/exist');
39 $a = new PharFileInfo(__FILE__);
H A Dcreate_new_and_modify.phpt17 file_put_contents($pname . '/a.php', "brand new!\n");
19 $phar = new Phar($fname);
27 $phar = new Phar($fname);
42 brand new!
H A Dpharfileinfo_destruct.phpt12 $a = new Phar($fname);
15 $b = new PharFileInfo($pname . '/a/subdir');
18 $b = new PharFileInfo($pname . '/a/subdir/here');
/PHP-5.4/ext/reflection/tests/
H A DReflectionClass_isInstance_basic.phpt15 $instances = array( "myA" => new A,
16 "myB" => new B,
17 "myC" => new C,
18 "myX" => new X );
21 $rc = new ReflectionClass($class);
H A DReflectionMethod_invoke_error1.phpt24 $foo = new ReflectionMethod('TestClass', 'foo');
25 $privateMethod = new ReflectionMethod("TestClass::privateMethod");
27 $testClassInstance = new TestClass();
39 var_dump($foo->invoke(new stdClass()));
52 $abstractMethod = new ReflectionMethod("AbstractClass::foo");
H A DReflectionMethod_constructor_error1.phpt18 $methodInfo = new ReflectionMethod(true);
24 $methodInfo = new ReflectionMethod(3);
30 $methodInfo = new ReflectionMethod(true, "foo");
36 $methodInfo = new ReflectionMethod('TestClass', true);
42 $methodInfo = new ReflectionMethod("TestClass");
48 $methodInfo = new ReflectionMethod("TestClass::foop::dedoop");
54 $methodInfo = new ReflectionMethod("TestCla::foo");
60 $methodInfo = new ReflectionMethod("TestClass::foo");
H A DReflectionMethod_getClosure_basic.phpt31 $class = new ReflectionClass( 'Example' );
32 $staticclass = new ReflectionClass( 'StaticExample' );
33 $object = new Example();
34 $fakeobj = new StdClass();
H A Dbug46064_2.phpt9 $x = new foo;
13 $p = new ReflectionObject($x);
29 $p = new reflectionobject($this);
36 new test;
/PHP-5.4/ext/spl/examples/
H A Dfindfile.inc38 parent::__construct(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)));
40 $it = new AppendIterator();
42 $it->append(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)));
/PHP-5.4/ext/spl/tests/
H A Dbug40872.phpt19 $projects = new ProjectsList();
20 $projects->add(new Project('1'));
21 $projects->add(new Project(2));
H A Dbug52238.phpt8 throw new Exception;
12 return new ArrayIterator($this->bar());
15 var_dump(iterator_to_array(new Foo));
H A Diterator_048.phpt10 foreach(new RecursiveIteratorIterator($this) as $k => $v)
23 $ar = new RecursiveArrayIterator(array('Foo', array('Bar'), 'FooBar', array('Baz'), 'Biz'));
24 $it = new MyRecursiveRegexIterator($ar, '/Bar/');
H A Dbug51119.phpt7 $arrayIterator = new ArrayIterator($array);
10 $limitIterator = new LimitIterator($arrayIterator, 0);
19 $limitIterator = new LimitIterator($arrayIterator, -1);
H A Dobserver_009.phpt7 $storageA = new \SplObjectStorage();
8 $storageA->attach(new \Foo);
9 $storageA->attach(new \Foo);
/PHP-5.4/ext/intl/tests/
H A Dresourcebundle_internal.phpt7 $b = new ResourceBundle('de_DE', 'ICUDATA-region');
10 $b = new ResourceBundle('icuver', 'ICUDATA');
13 $b = new ResourceBundle('supplementalData', 'ICUDATA', false);
/PHP-5.4/ext/phar/tests/cache_list/files/
H A Dwrite2.phar.inc6 $phar = new Phar($fname);
8 $phar = new Phar(__FILE__);
12 $phar2 = new Phar(__FILE__);
/PHP-5.4/ext/standard/tests/array/
H A Dusort_object1.phpt68 0 => new SimpleClass1(10),
69 1 => new SimpleClass1(1),
70 2 => new SimpleClass1(100),
71 3 => new SimpleClass1(50)
78 0 => new SimpleClass2(2, 3.4, "mango"),
79 1 => new SimpleClass2(10, 1.2, "apple"),
80 2 => new SimpleClass2(5, 2.5, "orange"),
/PHP-5.4/ext/ereg/tests/
H A Dereg_replace_variation_003.phpt20 $replacement = 'new value';
64 new stdclass(),
93 string(9) "new value"
97 string(13) "new value2345"
105 string(12) "new value0.5"
109 string(13) "-new value0.5"
113 string(28) "new value0new value234567000"
117 string(29) "new value.0765432new valueE-9"
163 string(9) "new value"
171 string(9) "new value"
H A Deregi_replace_variation_003.phpt20 $replacement = 'new value';
64 new stdclass(),
93 string(9) "new value"
97 string(13) "new value2345"
105 string(12) "new value0.5"
109 string(13) "-new value0.5"
113 string(28) "new value0new value234567000"
117 string(29) "new value.0765432new valueE-9"
163 string(9) "new value"
171 string(9) "new value"
/PHP-5.4/ext/phar/tests/tar/
H A Dopen_for_write_newfile.phpt2 Phar: fopen a .phar for writing (new file) tar-based
14 $phar = new Phar($fname);
29 $fp = fopen($alias . '/b/new.php', 'wb');
34 include $alias . '/b/new.php';
/PHP-5.4/ext/phar/tests/zip/
H A Dopen_for_write_newfile.phpt2 Phar: fopen a .phar for writing (new file) zip-based
14 $phar = new Phar($fname);
28 $fp = fopen($alias . '/b/new.php', 'wb');
33 include $alias . '/b/new.php';
/PHP-5.4/ext/pdo_mysql/tests/
H A Dbug63176.phpt25 …$this->db = new PDO2(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, array(PDO::ATTR…
27 …$this->db = new PDO3(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, array(PDO::ATTR…
33 $a = new ModelA(true);
34 $b = new ModelA(false);
/PHP-5.4/ext/standard/tests/serialize/
H A Dbug65481.phpt14 $c = new A;
18 $e = new A;
33 $token = new Token;

Completed in 30 milliseconds

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