Home
last modified time | relevance | path

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

12345678910>>...189

/php-src/ext/json/tests/
H A Dserialize.phpt8 class NonSerializingTest
18 class SerializingTest extends NonSerializingTest implements JsonSerializable
26 class ValueSerializingTest extends SerializingTest
34 class SelfSerializingTest extends SerializingTest
56 …y('NonSerializingTest','SerializingTest','ValueSerializingTest','SelfSerializingTest') as $class) {
57 echo "==$class==\n";
58 echo json_encode(new $class($adata)), "\n";
59 echo json_encode(new $class($ndata)), "\n";
60 echo json_encode(new $class($odata)), "\n";
/php-src/Zend/tests/anon/
H A D012.phpt2 Ensure correct unmangling of private property names for anonymous class instances
5 var_dump(new class { private $foo; });
8 object(class@anonymous)#1 (1) {
9 ["foo":"class@anonymous":private]=>
/php-src/ext/reflection/tests/
H A DReflectionClass_newInstance_001.phpt9 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";
27 class E {
72 In constructor of class B with args x, 123
75 Access to non-public constructor of class C
76 Access to non-public constructor of class D
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
/php-src/Zend/tests/
H A Dself_class_const_in_unknown_scope.phpt2 Use of self::class inside a constant in an unknown scope
6 class Test {
9 const FOO = self::class;
16 const BAR = self::class;
23 Fatal error: Uncaught Error: Cannot use "self" when no class scope is active in %s:%d
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 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/Zend/tests/type_declarations/variance/
H A Dabstract_constructor.phpt5 class X {
7 abstract class A {
10 class B extends A {
13 class C extends B {
18 …patibility between C::__construct(Y $x) and A::__construct(X $x), because class Y is not available…
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/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 {}

Completed in 25 milliseconds

12345678910>>...189