/php-src/ext/reflection/tests/ |
H A D | ReflectionClass_getProperties_001.phpt | 8 class pubf { 15 class protf { 22 class privf { 32 echo "Reflecting on class $class: \n"; 45 ["class"]=> 52 ["class"]=> 62 ["class"]=> 69 ["class"]=> 79 ["class"]=> 86 ["class"]=> [all …]
|
H A D | ReflectionClass_getMethods_001.phpt | 8 class pubf { 15 class protf { 22 class privf { 32 echo "Reflecting on class $class: \n"; 45 ["class"]=> 52 ["class"]=> 62 ["class"]=> 69 ["class"]=> 79 ["class"]=> 86 ["class"]=> [all …]
|
H A D | ReflectionClass_getConstants_basic.phpt | 5 class C { 8 class D extends C { 10 class E extends D { 12 class F extends E { 15 class X { 20 echo "Constants from class $class: \n"; 26 Constants from class C: 31 Constants from class D: 36 Constants from class E: 41 Constants from class F: [all …]
|
H A D | ReflectionClass_getDocComment_001.phpt | 19 class A {} 22 class B extends A { } 24 class C extends B {} 38 class D implements I {} 50 foreach ($classes as $class) { 51 echo "\n\n---> Doc comment for class $class:\n"; 59 ---> Doc comment for class A: 71 ---> Doc comment for class B: 75 ---> Doc comment for class C: 79 ---> Doc comment for class D: [all …]
|
H A D | ReflectionClass_getConstant_basic.phpt | 5 class C { 8 class D extends C { 10 class E extends D { 12 class F extends E { 15 class X { 20 echo "Reflecting on class $class:\n"; 27 Reflecting on class C: 30 Reflecting on class D: 33 Reflecting on class E: 36 Reflecting on class F: [all …]
|
H A D | ReflectionClass_newInstanceWithoutConstructor.phpt | 7 class Foo 15 $class = new ReflectionClass('Foo'); 16 var_dump($class->newInstanceWithoutConstructor()); 18 $class = new ReflectionClass('StdClass'); 19 var_dump($class->newInstanceWithoutConstructor()); 21 $class = new ReflectionClass('DateTime'); 22 var_dump($class->newInstanceWithoutConstructor()); 24 $class = new ReflectionClass('Generator'); 31 final class Bar extends ArrayObject { 34 $class = new ReflectionClass('Bar'); [all …]
|
H A D | ReflectionObject_getConstants_basic.phpt | 5 class C { 8 class D extends C { 10 class E extends D { 12 class F extends E { 15 class X { 19 foreach($classes as $class) { 20 echo "Reflecting on instance of class $class: \n"; 27 Reflecting on instance of class C: 32 Reflecting on instance of class D: 37 Reflecting on instance of class E: [all …]
|
H A D | ReflectionClass_getMethod_001.phpt | 8 class pubf { 15 class protf { 22 class privf { 32 echo "Reflecting on class $class: \n"; 53 ["class"]=> 59 ["class"]=> 65 ["class"]=> 73 ["class"]=> 79 ["class"]=> 85 ["class"]=> [all …]
|
H A D | ReflectionObject_getConstant_basic.phpt | 5 class C { 8 class D extends C { 10 class E extends D { 12 class F extends E { 15 class X { 19 foreach($classes as $class) { 20 echo "Reflecting on instance of class $class: \n"; 27 Reflecting on instance of class C: 30 Reflecting on instance of class D: 33 Reflecting on instance of class E: [all …]
|
H A D | ReflectionClass_getProperties_003.phpt | 8 class C { 53 ["class"]=> 60 ["class"]=> 67 ["class"]=> 74 ["class"]=> 81 ["class"]=> 88 ["class"]=> 97 ["class"]=> 104 ["class"]=> 111 ["class"]=> [all …]
|
H A D | ReflectionObject_getConstructor_basic.phpt | 5 class NewCtor { 9 class ExtendsNewCtor extends NewCtor { 12 class X { 16 class Y extends X { 19 class B { 23 class C extends B { 27 class D1 extends C { 31 class D2 extends C { 37 foreach ($classes as $class) { 38 $rc = new ReflectionObject(new $class); [all …]
|
/php-src/ext/phar/tests/ |
H A D | phpinfo_004.phpt | 31 <tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr> 35 <tr><td class="e">gzip compression </td><td class="v">enabled </td></tr> 36 <tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr> 40 <tr class="v"><td> 45 <tr><td class="e">phar.cache_list</td><td class="v"><i>no value</i></td><td class="v"><i>no value</… 46 <tr><td class="e">phar.readonly</td><td class="v">Off</td><td class="v">Off</td></tr> 47 <tr><td class="e">phar.require_hash</td><td class="v">Off</td><td class="v">Off</td></tr> 62 <tr class="v"><td> 67 <tr><td class="e">phar.cache_list</td><td class="v"><i>no value</i></td><td class="v"><i>no value</… 68 <tr><td class="e">phar.readonly</td><td class="v">On</td><td class="v">Off</td></tr> [all …]
|
/php-src/Zend/tests/enum/ |
H A D | enum_exists.phpt | 10 class Baz {} 20 var_dump(enum_exists(Foo::class)); 21 var_dump(enum_exists(Foo::Bar::class)); 22 var_dump(enum_exists(Baz::class)); 23 var_dump(enum_exists(Qux::class)); 24 var_dump(enum_exists(Quux::class, false)); 25 var_dump(enum_exists(Quux::class, true)); 27 var_dump(enum_exists(Quuz::class, true)); 34 Triggered autoloader with class Qux 37 Triggered autoloader with class Quux [all …]
|
/php-src/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload_error3.phpt | 7 if ($class == 'A') { 8 class A { 11 } else if ($class == 'B') { 12 class B extends A { 15 } else if ($class == 'X') { 16 class X { 19 } else if ($class == 'Y') { 20 class Y extends X { 23 } else if ($class == 'Q') { 24 class Q { [all …]
|
H A D | class_order_autoload5.phpt | 8 if ($class == 'A') { 9 class A { 13 } else if ($class == 'B') { 14 class B extends A { 18 } else if ($class == 'X') { 19 class X { 23 } else if ($class == 'Y') { 24 class Y extends X { 28 } else if ($class == 'Q') { 29 class Q { [all …]
|
/php-src/Zend/tests/anon/ |
H A D | 003.phpt | 6 var_dump(new class($i) { 15 object(class@%s)#1 (1) { 19 object(class@%s)#1 (1) { 23 object(class@%s)#1 (1) { 27 object(class@%s)#1 (1) { 31 object(class@%s)#1 (1) { 35 object(class@%s)#1 (1) { 39 object(class@%s)#1 (1) { 43 object(class@%s)#1 (1) { 47 object(class@%s)#1 (1) { [all …]
|
/php-src/ext/dom/tests/modern/css_selectors/ |
H A D | pseudo_classes_nth_child_of.phpt | 12 <h2 class="hi">1</h2> 14 <h2 class="hi">3</h2> 34 <h2 class="hi">3</h2> 35 <h2 class="hi">6</h2> 37 <h2 class="hi">4</h2> 38 <h2 class="hi">6</h2> 40 <h2 class="hi">1</h2> 41 <h2 class="hi">4</h2> 43 <h2 class="hi">1</h2> 44 <h2 class="hi">3</h2> [all …]
|
/php-src/ext/spl/tests/ |
H A D | spl_autoload_014.phpt | 5 $closure = function($class) { 6 echo "closure called with class $class\n"; 9 class Autoloader { 14 public function __invoke($class) { 15 echo ("Autoloader('{$this->dir}') called with $class\n"); 19 class WorkingAutoloader { 20 public function __invoke($class) { 21 echo ("WorkingAutoloader() called with $class\n"); 22 eval("class $class { }"); 42 closure called with class TestX
|
/php-src/Zend/tests/lazy_objects/ |
H A D | initializer_must_return_the_right_type.phpt | 6 class B { 15 class C extends B { 18 class D extends C { 22 class E extends B { 49 [C::class, new C()], 50 [C::class, new B()], 51 [D::class, new B()], 69 [C::class, new stdClass], 71 [C::class, null], 72 [C::class, new D()], [all …]
|
/php-src/Zend/tests/ |
H A D | bug66811.phpt | 2 Bug #66811: Cannot access static::class in lambda, written outside of a class 5 class A { 8 var_dump(self::class); 9 var_dump(static::class); 14 class B extends A {} 19 $g = $f->bindTo(null, A::class); 23 var_dump(self::class); 24 var_dump(static::class); 27 $bar = $foo->bindTo(null, A::class);
|
H A D | class_name_as_scalar.phpt | 2 class name as scalar from ::class keyword 7 class One { 9 const A = self::class; 10 const B = Two::class; 12 class Two extends One { 20 class Three extends Two { 23 $one = self::class, 24 $two = Baz::class, 39 var_dump(One::class); // resolve from use 43 $class = One::class; // assign class as scalar to var [all …]
|
H A D | gh14961.phpt | 6 class C { 7 public $class = C::class; 11 $c->/* comment */class = 42; 12 var_dump($c->/** doc comment */class); 15 class); 18 class); 19 var_dump($c?->/* comment */class);
|
/php-src/Zend/tests/traits/ |
H A D | abstract_method_9.phpt | 6 spl_autoload_register(function($class) { 7 if ($class == T::class) { 11 } else if ($class == C::class) { 12 class C { 19 } else if ($class == D::class) { 20 class D extends C {}
|
/php-src/ext/standard/tests/array/ |
H A D | array_map_object3.phpt | 7 * 1) child class method using parent object 8 * 2) parent class method using child object 9 * 3) child class method using parent class 10 * 4) parent class method using child class 16 class ParentClass 27 class ChildClass extends ParentClass 45 echo "-- accessing parent method from child class --\n"; 69 -- accessing parent method from child class -- 78 -- accessing child method from parent class -- 80 -- accessing parent method using child class object -- [all …]
|
H A D | array_map_object1.phpt | 8 * 2) class without members 10 * 4) abstract and child class 17 class SimpleClass 35 class SimpleClassPri 45 class SimpleClassPro 55 class EmptyClass 61 abstract class AbstractClass 67 // class deriving the above abstract class 78 class FinalClass 88 class StaticClass [all …]
|