/php-src/ext/reflection/tests/ |
H A D | ReflectionClassConstant_getValue_typed.phpt | 2 Test variations of getting typed class constant values 7 class A { 10 class B { 16 $rc = new ReflectionClassConstant(A::class, 'CONST1'); 20 $rc = new ReflectionClassConstant(B::class, 'CONST1'); 38 Cannot assign stdClass to class constant B::CONST1 of type array 39 Cannot assign stdClass to class constant B::CONST1 of type array
|
H A D | ReflectionMethod_defaultArg.phpt | 5 Abstract class F { 6 private function bar($a = self::class) {} 11 private function bar($a = self::class) {} 15 class B { 35 Parameter #0 [ <optional> $a = self::class ] 42 Parameter #0 [ <optional> $a = self::class ]
|
H A D | ReflectionMethod_getClosureThis.phpt | 5 class StaticExample 9 var_dump( "Static Example class, Hello World!" ); 13 class Example 18 var_dump( "Example class, bar: " . $this->bar ); 23 $class = new ReflectionClass( 'Example' ); 33 $method = $class->getMethod( 'foo' );
|
H A D | ReflectionClass_newInstanceArgs_001.phpt | 9 class B { 11 echo "In constructor of class B with args $a, $b\n"; 15 class C { 17 echo "In constructor of class C\n"; 21 class D { 23 echo "In constructor of class D\n"; 26 class E { 69 In constructor of class B with args x, 123 72 Access to non-public constructor of class C 73 Access to non-public constructor of class D
|
H A D | ReflectionClass_modifiers_001.phpt | 8 abstract class A {} 9 class B extends A {} 10 class C {} 11 final class D {} 12 readonly class E {} 17 foreach ($classes as $class) { 18 $rc = new ReflectionClass($class);
|
H A D | ReflectionMethod_getClosure_error.phpt | 7 class StaticExample 11 var_dump( "Static Example class, Hello World!" ); 15 class Example 20 var_dump( "Example class, bar: " . $this->bar ); 25 $class = new ReflectionClass( 'Example' ); 27 $method = $class->getMethod( 'foo' ); 44 string(72) "Given object is not an instance of the class this method was declared in"
|
/php-src/Zend/tests/lazy_objects/ |
H A D | init_exception_reverts_initializer_changes_nested.phpt | 6 class A { 9 class B { 12 class C { 16 $aReflector = new ReflectionClass(A::class); 17 $bReflector = new ReflectionClass(B::class); 18 $cReflector = new ReflectionClass(C::class); 35 printf("%s: %s\n", $e::class, $e->getMessage());
|
/php-src/Zend/tests/readonly_classes/ |
H A D | readonly_class_inheritance_success.phpt | 2 Readonly class can extend a readonly class 6 readonly class Foo 10 readonly class Bar extends Foo
|
/php-src/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload_error2.phpt | 7 spl_autoload_register(function($class) { 8 if ($class === 'A') { 9 class A { 12 } else if ($class == 'B') { 13 class B extends A { 17 class C extends B {
|
/php-src/ext/spl/tests/ |
H A D | spl_autoload_bug48541.phpt | 6 class X { 8 return function($class) { 14 $a = function ($class) { 19 $b = function ($class) { 20 eval('class ' . $class . '{function __construct(){echo "foo\n";}}');
|
/php-src/Zend/tests/attributes/override/ |
H A D | gh12189.phpt | 2 #[Override] attribute in trait does not check for parent class implementations 6 class A { 22 class B implements I { 26 // Works fine ("copied and pasted into the target class") 27 class C extends A { 35 class D extends A {
|
/php-src/Zend/tests/ |
H A D | temporary_cleaning_013.phpt | 7 var_dump(new class { 14 var_dump([0] + [new class { 34 $foo = new class { 44 $foo = new class { 148 var_dump((new class { 156 var_dump((new class { 200 $foo = new class { 207 $foo = [new class { 221 $foo = new class { 239 $foo = new class { [all …]
|
H A D | bug71248.phpt | 5 class Hint1 { } 6 class Hint2 { } 8 abstract class Base { 16 class Foo extends Base implements Iface { 20 abstract class Bar extends Base {
|
H A D | class_underscore_as_name.phpt | 2 Using "_" as a class name is deprecated 7 class _ {} 11 class _ {} 16 Deprecated: Using "_" as a class name is deprecated since 8.4 in %s on line %d 18 Deprecated: Using "_" as a class name is deprecated since 8.4 in %s on line %d
|
H A D | bug62814.phpt | 2 Bug #62814: It is possible to stiffen child class members visibility 6 class A { 10 class B extends A { 14 class C extends B { 20 Fatal error: Access level to C::test() must be protected (as in class B) or weaker in %s on line 12
|
H A D | bug70957.phpt | 2 Bug #70957 (self::class cannot be resolved with reflection for abstract class) 6 abstract class Foo 8 function bar($a = self::class) {} 16 class B extends Foo
|
/php-src/Zend/tests/attributes/ |
H A D | 006_filter.phpt | 7 $attr = $ref->getAttributes(A3::class); 12 $attr = $ref->getAttributes(A2::class); 17 $attr = $ref->getAttributes(A2::class); 24 class A1 implements Base { } 25 class A2 implements Base { } 26 class A3 extends A2 { } 34 $attr = $ref->getAttributes(A1::class, \ReflectionAttribute::IS_INSTANCEOF); 39 $attr = $ref->getAttributes(Base::class, \ReflectionAttribute::IS_INSTANCEOF); 44 $attr = $ref->getAttributes(A2::class, \ReflectionAttribute::IS_INSTANCEOF); 49 $attr = $ref->getAttributes(Base::class, \ReflectionAttribute::IS_INSTANCEOF); [all …]
|
H A D | gh8421.phpt | 6 class FunctionAttribute 16 class ClosureHolder 43 var_dump((new ReflectionFunction($globalClosure))->getAttributes(FunctionAttribute::class)[0]->newI… 44 var_dump((new ReflectionFunction($globalStaticClosure))->getAttributes(FunctionAttribute::class)[0]… 45 …:getClosureDefinedInScopeStatically()))->getAttributes(FunctionAttribute::class)[0]->newInstance()… 46 …aticClosureDefinedInScopeStatically()))->getAttributes(FunctionAttribute::class)[0]->newInstance()… 50 …n($holder->getClosureDefinedInScope()))->getAttributes(FunctionAttribute::class)[0]->newInstance()… 51 …der->getStaticClosureDefinedInScope()))->getAttributes(FunctionAttribute::class)[0]->newInstance()…
|
/php-src/ext/standard/tests/array/ |
H A D | uasort_object2.phpt | 9 * simple class, 10 * child class, 11 * empty class & 12 * static class 32 class SimpleClass 43 class EmptyClass 48 class StaticClass 56 // Abstract class 57 abstract class AbstractClass 63 // Child class extending abstract class [all …]
|
/php-src/ext/intl/tests/ |
H A D | bug75090.phpt | 2 Bug #75090 Constants of parent IntlCalendar class not inherited 7 class Foo extends IntlCalendar {} 9 $fooRef = new ReflectionClass(Foo::class); 10 $intlGregorianCalendarRef = new ReflectionClass(IntlGregorianCalendar::class); 11 $intlCalendarRef = new ReflectionClass(IntlCalendar::class);
|
/php-src/tests/classes/ |
H A D | destructor_and_references.phpt | 6 class test1 {public $x;}; 7 class test2 {public $x;}; 8 class test3 {public $x;}; 9 class test4 {public $x;}; 20 class once {}
|
H A D | ctor_dtor_inheritance.phpt | 2 ZE2 A derived class can use the inherited constructor/destructor 9 // - base class constructors/destructors know the instantiated class name 11 class base { 26 class derived extends base { 46 echo "Testing class base\n"; 49 echo "Testing class derived\n"; 56 Testing class base 67 Testing class derived
|
/php-src/ext/zend_test/tests/ |
H A D | observer_declarations_file_cache.phpt | 2 Observer: Observe function and class declarations with file_cache_only 16 class A {} 17 class B extends A {} 22 <!-- declared class 'a' --> 23 <!-- declared class 'b' -->
|
/php-src/Zend/tests/type_declarations/union_types/ |
H A D | anonymous_class.phpt | 2 Union with anonymous class type 6 $a = new class { 29 class@anonymous(): Argument #1 ($a) must be of type class@anonymous|string, null given, called in %… 30 class@anonymous::test(): Return value must be of type class@anonymous|string, stdClass returned
|
/php-src/Zend/tests/anon/ |
H A D | 014.phpt | 2 anonymous class trait binding 10 $class = new class() { 13 var_dump($class->run());
|