Home
last modified time | relevance | path

Searched refs:class (Results 401 – 425 of 5459) sorted by relevance

1...<<11121314151617181920>>...219

/php-src/tests/classes/
H A Dabstract_class.phpt2 ZE2 An abstract class cannot be instantiated
6 abstract class fail {
10 class pass extends fail {
27 Fatal error: Uncaught Error: Cannot instantiate abstract class fail in %s:%d
H A Dabstract_by_interface_001.phpt6 class Root {
14 abstract class Derived extends Root implements MyInterface {
17 class Leaf extends Derived
24 class Fails extends Root implements MyInterface {
/php-src/Zend/tests/type_declarations/variance/
H A Dparent_in_class_failure2.phpt2 Use of parent inside a class that has / has no parent (failure case 2)
7 class P4 {}
8 class A4 extends P4 {
11 class B4 extends A4 {
/php-src/Zend/tests/
H A Dbug45744.phpt5 class Foo {
18 class Bar extends Foo {
23 class Foo2 {
32 class Bar2 extends Foo2 {
H A Dbug77613.phpt5 class A {
11 class B extends A { }
13 class C extends B {
H A Dbug77922.phpt6 class A {
11 class B extends A {
14 class C extends B {
H A Doss_fuzz_57821.phpt2 oss-fuzz #57821: Unevaluated rhs of class constant fetch in constant expression
5 class Foo {
8 const C = Foo::{Foo::class};
H A Ddeclare_already_in_use.phpt2 Cannot redeclare class
7 class A {}
14 Fatal error: Cannot redeclare class A (previously declared in %s:%d) in %s on line %d
/php-src/Zend/tests/type_declarations/
H A Dtyped_class_constants_type_error7.phpt2 Typed class constants (type mismatch; runtime)
5 class A {
24 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable
25 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable
/php-src/ext/dom/tests/modern/html/interactions/
H A Dwithout_constructor.phpt8 foreach (['Dom\HTMLDocument', 'Dom\XMLDocument'] as $class) {
10 $rc = new ReflectionClass($class);
19 Class Dom\HTMLDocument is an internal class marked as final that cannot be instantiated without inv…
20 Class Dom\XMLDocument is an internal class marked as final that cannot be instantiated without invo…
/php-src/ext/reflection/tests/
H A Dbug29268.phpt7 eval("class $classname {}");
10 class B{
19 $class = $parameter->getClass();
20 echo $class->name."\n";
H A Dbug38465.phpt5 class Baz {
9 class Foo {
14 class Bar extends Foo {
31 echo "\nFrom class context:\n";
33 class Test {
58 From class context:
H A Dbug30856.phpt5 class bogus {
10 $class = new ReflectionClass('bogus');
12 var_dump($class->getStaticProperties());
/php-src/ext/reflection/tests/property_hooks/
H A Dhook_guard.phpt6 class A {
10 class B extends A {
24 (new ReflectionProperty(B::class, 'prop'))->getHook(PropertyHookType::Set)->invoke($b, 43);
25 var_dump((new ReflectionProperty(B::class, 'prop'))->getHook(PropertyHookType::Get)->invoke($b));
/php-src/Zend/tests/lazy_objects/
H A Dinit_preserves_proxy_class.phpt2 Lazy objects: initialization of proxy does not change the class of the object
7 class A {
10 class B extends A {
16 $reflector = new ReflectionClass(B::class);
/php-src/ext/pcntl/tests/
H A Dpcntl_sigtimedwait_errors.phpt18 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
27 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
34 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
41 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
50 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
59 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
65 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
71 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
77 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
84 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
/php-src/ext/zlib/tests/
H A Dgzgetss.gz
/php-src/Zend/tests/generators/errors/
H A Dgenerator_extend_error.phpt2 The Generator class cannot be extended
6 class ExtendedGenerator extends Generator { }
10 Fatal error: Class ExtendedGenerator cannot extend final class Generator in %s on line %d
/php-src/ext/gmp/tests/
H A Dfinal.phpt2 Cannot extend GMP class
8 class T extends GMP {}
12 Fatal error: Class T cannot extend final class GMP in %s on line %d
/php-src/ext/dba/tests/
H A Ddba_array_keys_errors.phpt20 echo $e::class, ': ', $e->getMessage(), \PHP_EOL;
25 echo $e::class, ': ', $e->getMessage(), \PHP_EOL;
33 echo $e::class, ': ', $e->getMessage(), \PHP_EOL;
38 echo $e::class, ': ', $e->getMessage(), \PHP_EOL;
54 Error: Object of class stdClass could not be converted to string
55 Error: Object of class stdClass could not be converted to string
/php-src/ext/opcache/tests/jit/
H A Dgh15101.phpt13 class A {
33 class Document {
35 final class TreeBuilderContext {
41 abstract class Node {
48 class DocumentType extends Node {
61 class DoctypeToken {
/php-src/Zend/tests/lsb/
H A Dlsb_021.phpt5 class A {
11 class B extends A {
28 (self::class)::test();
29 call_user_func(self::class . "::test");
30 call_user_func(array(self::class, "test"));
34 class C extends B {
/php-src/ext/zend_test/tests/
H A Dattribute-internal-property.phpt2 Tests attributes on internal class properties.
9 $prop = new \ReflectionProperty(ZendTestClassWithPropertyAttribute::class, 'attributed');
10 $attr = $prop->getAttributes(ZendTestAttribute::class)[0];
/php-src/Zend/tests/new_without_parentheses/
H A Dnew_without_ctor_arguments_parentheses_static_property.phpt6 class B
10 class A
12 public static $prop = B::class;
/php-src/Zend/tests/class_alias/
H A Dclass_alias_002.phpt2 Trying redeclare class with class_alias()
6 class foo { }
12 Warning: Cannot redeclare class FOO (previously declared in %s:%d) in %s on line %d

Completed in 51 milliseconds

1...<<11121314151617181920>>...219