Home
last modified time | relevance | path

Searched refs:class (Results 251 – 275 of 5331) sorted by relevance

1...<<11121314151617181920>>...214

/php-src/Zend/tests/
H A Dclass_name_as_scalar_error_005.phpt2 class name as scalar from ::class keyword error using static non class context
6 $x = static::class;
H A Dclass_name_as_scalar_error_006.phpt2 class name as scalar from ::class keyword error using parent in non class context
6 $x = parent::class;
H A Dbug33277.phpt2 Bug #33277 (private method accessed by child class)
5 class foo {
11 class fooson extends foo {
17 class foo2son extends fooson {
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 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 redeclare class Bar (previously declared in %sdelayed_early_binding_redeclarati…
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!');
/php-src/ext/reflection/tests/internal_parameter_default_value/
H A DReflectionParameter_getDefaultValueConstantName_Internal.phpt5 $class = new ReflectionClass('DateTime');
6 $method = $class->getMethod('setTime');
18 $class = new ReflectionClass('DateTimeZone');
19 $method = $class->getMethod('getTransitions');
31 $class = new ReflectionClass('DateTimeZone');
32 $method = $class->getMethod('listIdentifiers');
/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() {
40 string(%d) "class@anonymous%s::a"
59 ["class"]=>
60 string(%d) "class@anonymous%s"
62 object(class@anonymous)#%d (0) {
80 ["class"]=>
81 string(%d) "class@anonymous%s"
83 object(class@anonymous)#1 (0) {
/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/Zend/tests/class_alias/
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
/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 {
/php-src/Zend/tests/objects/
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
/php-src/ext/dom/tests/modern/token_list/
H A Dremove.phpt8 $dom = DOM\XMLDocument::createFromString('<root class="test1 test2"/>');
32 <root class="test2"/>
34 <root class="test2"/>
36 <root class=""/>
38 <root class="test3"/>
/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 27 milliseconds

1...<<11121314151617181920>>...214