Home
last modified time | relevance | path

Searched refs:class (Results 501 – 525 of 5459) sorted by relevance

1...<<21222324252627282930>>...219

/php-src/Zend/tests/access_modifiers/
H A Daccess_modifiers_013.phpt2 Prevent abstract and final in the same class declaration
6 final abstract class C {
12 Fatal error: Cannot use the final modifier on an abstract class in %s on line %d
/php-src/Zend/tests/errmsg/
H A Derrmsg_030.phpt2 errmsg: cannot use "self" as parent class name
6 class test extends self {
12 Fatal error: Cannot use "self" as class name, as it is reserved in %s on line %d
H A Derrmsg_031.phpt2 errmsg: cannot use "parent" as parent class name
6 class test extends parent {
12 Fatal error: Cannot use "parent" as class name, as it is reserved in %s on line %d
/php-src/Zend/tests/
H A Dbug65322.phpt6 spl_autoload_register(function($class) {
7 var_dump($class);
8 class X {}
18 eval('class A { private function __invoke() { } }');
H A Dbug38772.phpt5 class A {
16 class B extends A {
22 class C extends A {
28 class D extends A {
H A Dbug45742.phpt2 Bug #45742 Wrong class array interpretation using constant indexes
5 class Constants {
11 class ArrayProperty {
/php-src/Zend/tests/lazy_objects/
H A Dgc_001.phpt6 class Canary {
12 class C {
19 $obj = (new ReflectionClass(C::class))->newInstanceWithoutConstructor();
33 $obj = (new ReflectionClass(C::class))->newInstanceWithoutConstructor();
H A Dreset_as_lazy_while_init_exception.phpt6 class C {
10 $reflector = new ReflectionClass(C::class);
19 printf("%s: %s\n", $e::class, $e->getMessage());
24 printf("%s: %s\n", $e::class, $e->getMessage());
37 printf("%s: %s\n", $e::class, $e->getMessage());
42 printf("%s: %s\n", $e::class, $e->getMessage());
H A Doss_fuzz_71407.phpt6 class C {
10 $reflector = new ReflectionClass(C::class);
16 printf("%s: %s\n", $e::class, $e->getMessage());
/php-src/Zend/tests/magic_methods/
H A Dmagic_methods_inheritance_rules_non_trivial_02.phpt2 Magic Methods inheritance rules on a non-trivial class hierarchy
5 class A {
9 class B extends A {
13 class C extends B {
/php-src/ext/standard/tests/serialize/
H A Dincomplete_class.phpt23class definition "unknown" of the object you are trying to operate on was loaded _before_ unserial…
25class definition "unknown" of the object you are trying to operate on was loaded _before_ unserial…
28class definition "unknown" of the object you are trying to operate on was loaded _before_ unserial…
/php-src/ext/opcache/tests/
H A Dbug69688.phpt13 eval('class A{} class B{} class C{}');
/php-src/Zend/tests/anon/
H A D011.phpt2 Ensure proper inheritance with get_class(anon class instance) used via class_alias (see also bug #7…
6 class_alias(get_class(new class { protected $foo = 1; }), "AnonBase");
7 var_dump((new class extends AnonBase {
/php-src/ext/standard/tests/general_functions/
H A Dbug35229.phpt5 class test2 {
11 spl_autoload_register(function ($class) {
12 eval('class test1 extends test2 {}');
/php-src/Zend/tests/type_declarations/
H A Dtyped_class_constants_type_error12.phpt2 Typed class constants with static in union
5 class A {
9 class B {}
H A Dtyped_properties_006.phpt5 class Foo {
9 class Bar extends Foo {
14 Fatal error: Type of Bar::$qux must be int (as in class Foo) in %s on line 6
H A Dtyped_properties_008.phpt5 class Foo {
9 class Bar extends Foo {
14 Fatal error: Type of Bar::$qux must be int (as in class Foo) in %s on line 6
H A Dscalar_reserved7.phpt2 Scalar type names cannot be used as class, trait or interface names (7)
7 class int {}
10 Fatal error: Cannot use "int" as a class name as it is reserved in %s on line %d
/php-src/Zend/tests/objects/
H A Dobjects_009.phpt8 class test {
12 class test2 extends test {
16 class test3 extends test {
/php-src/ext/tokenizer/tests/
H A Dattributes.phpt8 $tokens = token_get_all('<?php #[A1(1, 2)] class C1 { }');
15 $class = $tokens[2];
16 var_dump($class[1]);
/php-src/Zend/tests/constants/final_constants/
H A Dfinal_const2.phpt2 Final class constants cannot be overridden
6 class Foo
11 class Bar extends Foo
/php-src/Zend/tests/traits/
H A Dinheritance002.phpt2 Trait method overrides base class method
7 class Base {
19 class MyHelloWorld extends Base {
/php-src/ext/reflection/tests/
H A DReflectionMethod_basic2.phpt2 ReflectionMethod class __toString() method
6 function reflectMethod($class, $method) {
7 $methodInfo = new ReflectionMethod($class, $method);
9 echo "Reflecting on method $class::$method()\n\n";
15 class TestClass
34 class DerivedClass extends TestClass {}
118 Parameter #0 [ <required> object|string $class ]
H A DReflectionFunction_getClosureCalledClass.phpt5 class A {
7 echo static::class.'::'.$name, "\n";
11 echo static::class.'->'.$name, "\n";
15 echo static::class.'::b', "\n";
20 echo static::class.'->c', "\n";
25 echo static::class.'::{closure}'."\n";
30 class B extends A {}
/php-src/Zend/tests/type_declarations/union_types/
H A Dinheritance.phpt6 class X {
14 class Y extends X {
25 class Z {
29 class U extends X {
33 class V extends X {

Completed in 24 milliseconds

1...<<21222324252627282930>>...219