Home
last modified time | relevance | path

Searched refs:class (Results 176 – 200 of 4383) sorted by relevance

12345678910>>...176

/php-src/Zend/tests/type_declarations/variance/
H A Dclass_order_error.phpt2 Returns are covariant, but we don't allow the code due to class ordering
6 class A {
9 class B extends A {
12 class C extends B {
19 Fatal error: Could not check compatibility between B::method(): C and A::method(): B, because class
H A Dunlinked_parent_1.phpt2 Using an unlinked parent class
6 spl_autoload_register(function($class) {
7 class X extends B {}
11 class B extends A {
H A Dmixed_return_type.phpt6 spl_autoload_register(function($class) {
7 echo "Loading $class\n";
10 class A {
13 class B extends A {
/php-src/ext/standard/tests/class_object/
H A Dproperty_exists_variation1.phpt2 Test property_exists() function : class auto loading
5 echo "*** Testing property_exists() : class auto loading ***\n";
11 echo "\ntesting property in autoloaded class\n";
19 *** Testing property_exists() : class auto loading ***
21 testing property in autoloaded class
/php-src/Zend/tests/
H A Dlsb_024.phpt3 class when the variable is private in parent class
6 class A {
13 class B extends A {
16 class C extends A {
H A Dbug24699.phpt2 Bug #24699 (Memory Leak with per-class constants)
5 class TEST { const FOO = SEEK_CUR; };
6 class TEST2 { const FOO = 1; };
7 class TEST3 { const FOO = PHP_VERSION; };
H A Dns_010.phpt2 010: Accessing internal namespace class
7 class Foo {
11 echo "class ok\n";
31 class ok
32 class ok
33 class ok
H A Dclass_constants_007.phpt2 Ownership of constant expression inhereted from immutable class should be transfered to class
5 class A {
9 eval('class B extends A{}');
H A Dlsb_023.phpt2 Late Static Binding static:: calls protected / public method of child class even then
3 the method is private in parent class
6 class A {
13 class B extends A {
16 class C extends A {
H A Dclosure_051.phpt2 Closure 051: static::class in static closure in static method.
6 class A {
9 return static::class;
15 class B extends A {}
H A Dclosure_052.phpt2 Closure 052: static::class in non-static closure in static method.
6 class A {
9 return static::class;
15 class B extends A {}
H A Dclosure_055.phpt2 Closure 055: self::class in static closure in static method.
6 class A {
9 return self::class;
15 class B extends A {}
H A Dclosure_056.phpt2 Closure 056: self::class in non-static closure in static method.
6 class A {
9 return self::class;
15 class B extends A {}
/php-src/ext/reflection/tests/
H A Dbug52057.phpt2 Bug #52057 (ReflectionClass fails on Closure class)
19 var_dump($h->class.'::'.$h->getName());
23 var_dump($h->class.'::'.$h->getName());
27 var_dump($h->class.'::'.$h->getName());
37 ["class"]=>
44 ["class"]=>
51 ["class"]=>
H A DReflectionEnumUnitCase_getDocComment.phpt5 // enum cases should support doc comments, like class constants.
13 var_dump((new ReflectionEnumUnitCase(Foo::class, 'Bar'))->getDocComment());
14 var_dump((new ReflectionEnumUnitCase(Foo::class, 'Baz'))->getDocComment());
15 var_dump((new ReflectionClassConstant(Foo::class, 'Bar'))->getDocComment());
16 var_dump((new ReflectionClassConstant(Foo::class, 'Baz'))->getDocComment());
H A Dbug64239.phpt5 class A {
13 class B extends A{
28 [class] => A
34 [class] => A
41 [class] => A
H A DReflectionClass_getModifierNames_basic.phpt8 class a {}
9 abstract class b {}
10 final class c {}
12 class x
26 abstract class y
32 function dump_modifierNames($class) {
33 $obj = new ReflectionClass($class);
37 function dump_methodModifierNames($class) {
38 $obj = new ReflectionClass($class);
H A D017.phpt5 class Foo {
8 $class = new ReflectionClass("Foo");
9 echo $class;
12 Class [ <user> class Foo ] {
/php-src/Zend/tests/type_declarations/intersection_types/variance/
H A Dvalid4.phpt6 class A {}
7 class B extends A {}
9 class Test {
12 class Test2 extends Test {
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_105.phpt5 class A {
9 $class = new ReflectionClass(A::class);
11 $defaults = $class->getDefaultProperties();
/php-src/Zend/tests/grammar/
H A Dregression_002.phpt2 Test to ensure ::class still works
6 class Foo {}
8 var_dump(Foo::class);
10 var_dump(Foo:: class);
/php-src/tests/classes/
H A Dprivate_006.phpt2 ZE2 A private method can be overwritten in a second derived class
5 class first {
17 class second extends first {
22 class third extends second {
27 class fail extends third {
/php-src/Zend/tests/enum/
H A Dkeyword-no-bc-break.phpt7 class Foo {}
11 class Bar {}
12 class enum extends Bar {}
17 class enum implements Baz {}
21 class enum {}
H A Dname-property.phpt16 var_dump((new ReflectionClass(Foo::class))->getProperties());
19 var_dump((new ReflectionClass(IntFoo::class))->getProperties());
29 ["class"]=>
39 ["class"]=>
46 ["class"]=>
/php-src/Zend/tests/traits/
H A Dconstant_001.phpt18 class Base {
27 class Derived extends Base {
35 echo Base::PUBLIC, ' via class name', PHP_EOL;
39 echo Derived::PUBLIC, ' via derived class name', PHP_EOL;
40 echo (new Derived)::PUBLIC, ' via derived class object', PHP_EOL;
44 public via class name
51 public via derived class name
52 public via derived class object

Completed in 27 milliseconds

12345678910>>...176