Home
last modified time | relevance | path

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

12345678910>>...186

/php-src/ext/reflection/tests/
H A DReflectionMethod_constructor_basic.phpt6 class NewCtor {
16 class ExtendsNewCtor extends NewCtor {
22 class X {
31 class Y extends X {
33 echo "\nInherited method of the same name as the class:\n";
48 Inherited method of the same name as the class:
H A D023.phpt5 class C1 {
10 class C2 extends C1 {
15 $class = new ReflectionClass("C2");
16 var_dump($class->getDefaultProperties());
H A DReflectionClassConstant_isEnumCase.phpt11 class Qux {
15 var_dump((new ReflectionClassConstant(Foo::class, 'Bar'))->isEnumCase());
16 var_dump((new ReflectionClassConstant(Foo::class, 'Baz'))->isEnumCase());
17 var_dump((new ReflectionClassConstant(Qux::class, 'Quux'))->isEnumCase());
H A DReflectionGenerator_basic.phpt11 (new class() {
57 ["class"]=>
58 string(%d) "class@anonymous%s"
60 object(class@anonymous)#%d (0) {
76 ["class"]=>
77 string(%d) "class@anonymous%s"
79 object(class@anonymous)#1 (0) {
H A DReflectionClass_getInterfaces_001.phpt8 class A0 {}
9 class B0 extends A0 {}
10 abstract class A1 {}
11 class B1 extends A1 {}
22 class C0 implements I0 {}
23 class C1 implements I1, I3 {}
24 class C2 extends C1 {}
25 class C3 extends C2 implements I1 {}
26 class C4 extends C3 implements I2 {}
27 class C5 extends C4 implements I7 {}
[all …]
H A DReflectionClass_getConstants_filter.phpt5 class A {
12 class B {
19 class C {
26 $reflectionClassA = new ReflectionClass(A::class);
29 $reflectionClassB = new ReflectionClass(B::class);
32 $reflectionClassC = new ReflectionClass(C::class);
/php-src/Zend/tests/
H A Dobjects_001.phpt6 class Bar {
40 Notice: Object of class Bar could not be converted to int in %s on line %d
43 Notice: Object of class Bar could not be converted to int in %s on line %d
46 Notice: Object of class Bar could not be converted to int in %s on line %d
49 Notice: Object of class Bar could not be converted to int in %s on line %d
52 Notice: Object of class Bar could not be converted to float in %s on line %d
55 Notice: Object of class Bar could not be converted to float in %s on line %d
58 Notice: Object of class Bar could not be converted to int in %s on line %d
H A Dclass_alias_008.phpt2 Testing class_alias() with abstract class using an arbitrary class name as alias
6 abstract class foo { }
16 Fatal error: Uncaught Error: Cannot instantiate abstract class foo in %s:%d
H A Dgh10377_1.phpt2 GH-10377 (Unable to have an anonymous readonly class) - usage variation: dynamic properties attribu…
6 $readonly_anon = new #[AllowDynamicProperties] readonly class {
15 Fatal error: Cannot apply #[AllowDynamicProperties] to readonly class class@anonymous in %s on line…
H A Dbug64239_2.phpt5 class A {
10 class B {
14 class C extends A {
42 [class] => B
54 [class] => B
H A Dbug81631.phpt2 Bug #81631: ::class with dynamic class name may yield wrong line number
6 var_dump($b::class);
11 Fatal error: Uncaught TypeError: Cannot use "::class" on null in %s:3
H A Dgh10709_2.phpt2 GH-10709: Recursive class constant evaluation
6 class B {
10 spl_autoload_register(function ($class) {
11 class A { const C = "A"; }
H A Dbug39542.phpt15 spl_autoload_register(function ($class) {
16 if (!require_once($class.'.inc')) {
17 error_log('Error: Autoload class: '.$class.' not found!');
H A Ddelayed_early_binding_redeclaration.phpt2 Delayed early binding throws class redeclaration error
7 class Foo {}
10 var_dump(class_exists(Bar::class));
13 Fatal error: Cannot declare class Bar, because the name is already in use in %sdelayed_early_bindin…
H A Dbug30828.phpt2 Bug #30828 (debug_backtrace() reports incorrect class in overridden methods)
5 class A {
10 print $t['class'].$t['type'].$t['function']."\n";
18 print $t['class'].$t['type'].$t['function']."\n";
26 print $t['class'].$t['type'].$t['function']."\n";
31 class B extends A {
/php-src/ext/spl/tests/
H A Dbug69264.phpt5 class MyFileInfo extends SplFileInfo {
11 class MyDoublyLinkedList extends SplDoublyLinkedList {
17 class MyObjectStorage extends SplObjectStorage {
23 class MyMultipleIterator extends MultipleIterator {
29 class MyArrayObject extends ArrayObject {
35 class MyArrayIterator extends ArrayIterator {
41 class MyMaxHeap extends SplMaxHeap {
47 class MyPriorityQueue extends SplPriorityQueue {
H A Dclass_uses_basic2.phpt9 class fooUser { use foo; }
12 class barUser { use bar; }
14 class foobarUser { use foo, bar; }
17 Traits are flattened into a class, and that semantics is nothing
19 class fooViaBarUser extends barUser { use foo; }
21 class fooExtended extends fooUser {}
/php-src/ext/session/tests/
H A Dbug53141.phpt9 spl_autoload_register(function ($class) {
10 var_dump("Loading $class");
11 eval('class Bar {}');
14 class Foo
/php-src/tests/classes/
H A Dconstants_visibility_error_003.phpt2 A redeclared class constant must have the same or higher visibility
6 class A {
10 class B extends A {
15 Fatal error: Access level to B::publicConst must be public (as in class A) in %s on line 7
H A Dclass_final.phpt2 ZE2 A final class cannot be inherited
6 final class base {
14 class derived extends base {
20 Fatal error: Class derived cannot extend final class base in %s on line %d
H A Dconstants_error_006.phpt2 Basic class support - attempting to modify a class constant by assignment
5 class aclass
10 echo "\nTrying to modify a class constant directly - should be parse error.\n";
H A Dconstants_error_007.phpt2 Basic class support - attempting to create a reference to a class constant
5 class aclass
10 echo "\nAttempting to create a reference to a class constant - should be parse error.\n";
H A Dconstants_visibility_error_004.phpt2 A redeclared class constant must have the same or higher visibility
6 class A {
10 class B extends A {
15 Fatal error: Access level to B::protectedConst must be protected (as in class A) or weaker in %s on…
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_statement_class.phpt33 // unknown class
40 // class not derived from PDOStatement
41 class myclass {
54 class mystatement extends PDOStatement {
69 class mystatement2 extends PDOStatement {
79 class mystatement3 extends PDOStatement {
89 class mystatement4 extends PDOStatement {
101 class mystatement5 extends mystatement4 {
140 PDO::ATTR_STATEMENT_CLASS class must be a valid class
141 PDO::ATTR_STATEMENT_CLASS class must be a valid class
[all …]
/php-src/Zend/tests/traits/
H A Dbug76539.phpt2 Bug #76539 (Trait attribute is set incorrectly when using self::class with another string)
6 protected $attr = self::class . 'Test';
13 class A {
17 class B {

Completed in 40 milliseconds

12345678910>>...186