Home
last modified time | relevance | path

Searched refs:class (Results 226 – 250 of 5331) sorted by relevance

12345678910>>...214

/php-src/ext/reflection/tests/
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 DReflectionClass_toString_006.phpt2 Using ReflectionClass::__toString() with typed class constants
6 class Foo {
10 echo new ReflectionClass(Foo::class);
14 Class [ <user> class Foo ] {
H A DReflectionObject_isInstance_basic.phpt5 class A {}
6 class B extends A {}
7 class X {}
15 foreach ($classes as $class) {
16 $ro = new ReflectionObject(new $class);
18 echo "is $name a $class? ";
H A Dbug37964.phpt2 Reflection Bug #37964 (Reflection shows private methods of parent class)
6 abstract class foobar {
10 class foo extends foobar {
17 class bar extends foo {
26 Class [ <user> class bar extends foo ] {
/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
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_084.phpt2 Typed properties and class aliases
6 class Foo {}
11 class A {
17 class B extends A {
/php-src/ext/dom/tests/modern/token_list/
H A Dreplace.phpt8 $dom = DOM\XMLDocument::createFromString('<root class="A B C"/>');
41 <root class="A B C"/>
44 <root class="A X C"/>
47 <root class="A X"/>
50 <root class="B X"/>
53 <root class="B"/>
55 <root class="AA"/>
/php-src/Zend/tests/namespaces/
H A Dns_095.phpt7 class ClassA{}
8 class ClassB{}
9 class ClassC{}
26 var_dump(ClassA::class);
27 var_dump(ClassB::class);
28 var_dump(ClassC::class);
H A Dns_037.phpt2 037: Name ambiguity (namespace name or namespace's class name)
7 class X {
11 echo "class ok\n";
31 class ok
32 class ok
33 class ok
/php-src/Zend/tests/
H A Dbug60444.phpt2 Bug #60444 (Segmentation fault with include & class extending)
5 class Foo {
7 eval("class Bar extends Foo {}");
11 class Some {
H A Dgh10709.phpt2 GH-10709: Recursive class constant evaluation
6 class B { const C = A::C . "B"; }
8 spl_autoload_register(function ($class) {
9 class A { const C = "A"; }
H A Dbug63976.phpt2 Bug #63976 (Parent class incorrectly using child constant in class property)
6 class Foo {
12 class Bar extends Foo {
H A Dmethod_argument_binding.phpt6 class A {
10 class B extends A {
18 class C extends B {
26 class D {
32 class E extends D {
/php-src/Zend/tests/closures/
H A Dclosure_054.phpt2 Closure 054: self::class in non-static closure in non-static method.
6 class A {
9 return self::class;
15 class B extends A {}
H A Dclosure_049.phpt2 Closure 049: static::class in static closure in non-static method.
6 class A {
9 return static::class;
15 class B extends A {}
H A Dclosure_050.phpt2 Closure 050: static::class in non-static closure in non-static method.
6 class A {
9 return static::class;
15 class B extends A {}
H A Dclosure_053.phpt2 Closure 053: self::class in static closure in non-static method.
6 class A {
9 return self::class;
15 class B extends A {}
/php-src/Zend/tests/property_hooks/
H A Dparent_syntax.phpt6 class A {
14 class B extends A {
24 class C {
28 class D extends C {
34 class E {
H A Dattributes.phpt7 class A {}
10 class B {}
12 class C {
19 $getAttr = (new ReflectionProperty(C::class, 'prop'))->getHook(PropertyHookType::Get)->getAttribute…
24 $setAttr = (new ReflectionProperty(C::class, 'prop'))->getHook(PropertyHookType::Set)->getAttribute…
/php-src/Zend/tests/readonly_classes/
H A Dreadonly_class_final_modifier.phpt2 The readonly and final class modifiers can be defined in the same time
6 final readonly class Foo
10 readonly class Bar extends Foo
16 Fatal error: Class Bar cannot extend final class Foo in %s on line %d
/php-src/Zend/tests/return_types/
H A D042.phpt5 class UnionType {
9 class UnionType2 {
13 class UnionTypeOldStyle {
17 class JustAnArray {
/php-src/ext/reflection/tests/property_hooks/
H A Dbasics.phpt6 class Test {
16 abstract class Test2 {
31 $rp1 = new ReflectionProperty(Test::class, 'prop1');
39 $rp2 = new ReflectionProperty(Test::class, 'prop2');
56 $rp3 = new ReflectionProperty(Test::class, 'prop3');
70 $rp5 = new ReflectionProperty(Test::class, 'prop5');
75 $rp6 = new ReflectionProperty(Test::class, 'prop6');
92 ["class"]=>
99 ["class"]=>
110 ["class"]=>
[all …]
/php-src/ext/standard/tests/array/
H A Darray_intersect_uassoc_variation10.phpt2 Test array_intersect_uassoc() function : usage variation - Passing class/object methods to callback
10 // define some class with method
11 class MyClass
23 echo "\n-- Testing array_intersect_uassoc() function using class with static method as callback --\…
27 echo "\n-- Testing array_intersect_uassoc() function using class with regular method as callback --…
34 -- Testing array_intersect_uassoc() function using class with static method as callback --
44 -- Testing array_intersect_uassoc() function using class with regular method as callback --
/php-src/ext/spl/tests/
H A Diterator_056.phpt2 SPL: Calling __construct(void) on class extending SPL iterator
8 class myFilterIterator extends FilterIterator {
12 class myCachingIterator extends CachingIterator { }
14 class myRecursiveCachingIterator extends RecursiveCachingIterator { }
16 class myParentIterator extends ParentIterator { }
18 class myLimitIterator extends LimitIterator { }
20 class myNoRewindIterator extends NoRewindIterator {}
/php-src/Zend/tests/readonly_props/
H A Doverride_with_attributes.phpt7 class FooAttribute {}
9 class A {
16 class B extends A {
21 var_dump((new ReflectionProperty(B::class, 'prop'))->getAttributes()[0]->newInstance());

Completed in 38 milliseconds

12345678910>>...214