/PHP-5.4/Zend/tests/ |
H A D | bug45805.phpt | 11 throw new RuntimeException; 23 $obj = new A; 28 $m = new ReflectionMethod('B', 'foo'); 37 $o = new B;
|
H A D | ns_071.phpt | 14 new bar(null); 15 new bar(new \stdclass);
|
/PHP-5.4/ext/phar/tests/ |
H A D | pharfileinfo_construct.phpt | 14 $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 D | create_new_and_modify.phpt | 17 file_put_contents($pname . '/a.php', "brand new!\n"); 19 $phar = new Phar($fname); 27 $phar = new Phar($fname); 42 brand new!
|
H A D | pharfileinfo_destruct.phpt | 12 $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 D | ReflectionClass_isInstance_basic.phpt | 15 $instances = array( "myA" => new A, 16 "myB" => new B, 17 "myC" => new C, 18 "myX" => new X ); 21 $rc = new ReflectionClass($class);
|
H A D | ReflectionMethod_invoke_error1.phpt | 24 $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 D | ReflectionMethod_constructor_error1.phpt | 18 $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 D | ReflectionMethod_getClosure_basic.phpt | 31 $class = new ReflectionClass( 'Example' ); 32 $staticclass = new ReflectionClass( 'StaticExample' ); 33 $object = new Example(); 34 $fakeobj = new StdClass();
|
H A D | bug46064_2.phpt | 9 $x = new foo; 13 $p = new ReflectionObject($x); 29 $p = new reflectionobject($this); 36 new test;
|
/PHP-5.4/ext/spl/examples/ |
H A D | findfile.inc | 38 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 D | bug40872.phpt | 19 $projects = new ProjectsList(); 20 $projects->add(new Project('1')); 21 $projects->add(new Project(2));
|
H A D | bug52238.phpt | 8 throw new Exception; 12 return new ArrayIterator($this->bar()); 15 var_dump(iterator_to_array(new Foo));
|
H A D | iterator_048.phpt | 10 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 D | bug51119.phpt | 7 $arrayIterator = new ArrayIterator($array); 10 $limitIterator = new LimitIterator($arrayIterator, 0); 19 $limitIterator = new LimitIterator($arrayIterator, -1);
|
H A D | observer_009.phpt | 7 $storageA = new \SplObjectStorage(); 8 $storageA->attach(new \Foo); 9 $storageA->attach(new \Foo);
|
/PHP-5.4/ext/intl/tests/ |
H A D | resourcebundle_internal.phpt | 7 $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 D | write2.phar.inc | 6 $phar = new Phar($fname); 8 $phar = new Phar(__FILE__); 12 $phar2 = new Phar(__FILE__);
|
/PHP-5.4/ext/standard/tests/array/ |
H A D | usort_object1.phpt | 68 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 D | ereg_replace_variation_003.phpt | 20 $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 D | eregi_replace_variation_003.phpt | 20 $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 D | open_for_write_newfile.phpt | 2 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 D | open_for_write_newfile.phpt | 2 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 D | bug63176.phpt | 25 …$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 D | bug65481.phpt | 14 $c = new A; 18 $e = new A; 33 $token = new Token;
|