Home
last modified time | relevance | path

Searched refs:class (Results 26 – 50 of 2246) sorted by relevance

12345678910>>...90

/PHP-5.5/Zend/tests/
H A Dbug60573.phpt5 class Foo1 {
11 class Bar1 extends Foo1 {
17 class Foo2 {
23 class Bar2 extends Foo2 {
29 class Base {
32 class Foo3 extends Base{
38 class Bar3 extends Foo3 {
44 class Foo4 {
50 class Bar4 extends Foo4 {
56 class Foo5 extends Base {
[all …]
H A Dclass_name_as_scalar_error_001.phpt2 class name as scalar from ::class keyword error using static in class constant
7 class One {
8 const Baz = static::class;
13 Fatal error: static::class cannot be used for compile-time class name resolution in %s on line %d
H A Dclass_name_as_scalar_error_002.phpt2 class name as scalar from ::class keyword error using parent in class constant
7 class One {
8 const Baz = parent::class;
13 Fatal error: parent::class cannot be used for compile-time class name resolution in %s on line %d
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;
10 Fatal error: Cannot access static::class when no class scope is active in %s on line %d
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;
10 Fatal error: Cannot access parent::class when no class scope is active in %s on line %d
H A Dclass_name_as_scalar_error_003.phpt2 class name as scalar from ::class keyword error using static in method signature
7 class One {
8 public function baz($x = static::class) {}
13 Fatal error: static::class cannot be used for compile-time class name resolution in %s on line %d
H A Dclass_name_as_scalar_error_004.phpt2 class name as scalar from ::class keyword error using parent in method signature
7 class One {
8 public function baz($x = parent::class) {}
13 Fatal error: parent::class cannot be used for compile-time class name resolution in %s on line %d
H A Dbug31102.phpt8 function __autoload($class)
12 echo __METHOD__ . "($class,$test)\n";
16 eval("class $class { function __construct(){throw new Exception('$class::__construct');}}");
19 eval("class $class { function __construct(){throw new Exception('$class::__construct');}}");
H A Dbug37632.phpt6 class A1
14 class B1 extends A1
23 class C1 extends A1
34 class A2
42 class B2 extends A2
51 class C2 extends A2
78 class B3 extends A3
87 class C3 extends A3
99 class A4
107 class B4 extends A4
[all …]
/PHP-5.5/Zend/tests/traits/
H A Dbug55355.phpt2 …stract functions required by a trait are not correctly found when implemented in an ancestor class)
14 // A class on the second level in the
16 class Level2Impl {
20 class Level1Indirect extends Level2Impl {}
22 // A class on the first level in the
24 class Level1Direct {
30 class Direct {
35 class BaseL2 extends Level1Indirect {
39 class BaseL1 extends Level1Direct {
/PHP-5.5/ext/reflection/tests/
H A DReflectionClass_toString_003.phpt20 foreach (array('A', 'B', 'C', 'D') as $class) {
21 echo "\n\n----( Reflection class $class: )----\n";
22 $rc = new ReflectionClass($class);
30 ----( Reflection class A: )----
31 Class [ <user> class A ] {
54 ----( Reflection class B: )----
55 Class [ <user> class B extends A ] {
78 ----( Reflection class C: )----
79 Class [ <user> class C extends B ] {
99 ----( Reflection class D: )----
[all …]
H A DReflectionClass_hasMethod_001.phpt8 class pubf {
12 class subpubf extends pubf {
15 class protf {
19 class subprotf extends protf {
22 class privf {
26 class subprivf extends privf {
31 foreach($classes as $class) {
32 echo "Reflecting on class $class: \n";
45 Reflecting on class pubf:
55 Reflecting on class protf:
[all …]
H A DReflectionClass_hasProperty_001.phpt8 class pubf {
12 class subpubf extends pubf {
15 class protf {
19 class subprotf extends protf {
22 class privf {
26 class subprivf extends privf {
31 foreach($classes as $class) {
32 echo "Reflecting on class $class: \n";
45 Reflecting on class pubf:
55 Reflecting on class protf:
[all …]
H A DReflectionClass_toString_002.phpt20 foreach (array('A', 'B', 'C', 'D') as $class) {
21 echo "\n\n----( Reflection class $class: )----\n";
22 $rc = new ReflectionClass($class);
30 ----( Reflection class A: )----
31 Class [ <user> class A ] {
54 ----( Reflection class B: )----
55 Class [ <user> class B extends A ] {
78 ----( Reflection class C: )----
79 Class [ <user> class C extends B ] {
102 ----( Reflection class D: )----
[all …]
H A DReflectionClass_newInstanceWithoutConstructor.phpt7 class Foo
15 $class = new ReflectionClass('Foo');
16 var_dump($class->newInstanceWithoutConstructor());
18 $class = new ReflectionClass('StdClass');
19 var_dump($class->newInstanceWithoutConstructor());
21 $class = new ReflectionClass('DateTime');
22 var_dump($class->newInstanceWithoutConstructor());
29 …ception 'ReflectionException' with message 'Class DateTime is an internal class that cannot be ins…
H A DReflectionClass_getModifiers_basic.phpt8 class a {}
9 abstract class b {}
10 final class c {}
12 class e implements d {}
14 class g extends b {}
16 function dump_modifiers($class) {
17 $obj = new ReflectionClass($class);
H A DReflectionClass_isIterateable_basic.phpt8 class IteratorClass implements Iterator {
16 class DerivedClass extends IteratorClass {}
17 class NonIterator {}
19 function dump_iterateable($class) {
20 $reflection = new ReflectionClass($class);
25 foreach ($classes as $class) {
26 echo "Is $class iterateable? ";
27 dump_iterateable($class);
H A DReflectionObject_isInstantiable_basic.phpt5 class C {
12 class ifaceImpl implements iface {
16 abstract class abstractClass {
21 class D extends abstractClass {
27 foreach($classes as $class ) {
28 $ro = new ReflectionObject(new $class);
29 echo "Is $class instantiable? ";
H A DReflectionClass_newInstance_001.phpt8 class A {
10 echo "In constructor of class A\n";
14 class B {
20 class C {
22 echo "In constructor of class C\n";
26 class D {
28 echo "In constructor of class D\n";
31 class E {
74 In constructor of class A
75 In constructor of class A
[all …]
H A DReflectionMethod_getClosure_basic.phpt13 class StaticExample
17 var_dump( "Static Example class, Hello World!" );
21 class Example
26 var_dump( "Example class, bar: " . $this->bar );
31 $class = new ReflectionClass( 'Example' );
41 $method = $class->getMethod( 'foo' );
52 string(34) "Static Example class, Hello World!"
53 string(22) "Example class, bar: 42"
54 string(22) "Example class, bar: 34"
/PHP-5.5/ext/standard/tests/array/
H A Darray_filter_object.phpt13 * object of empty class
14 * object of child class extending abstract class
21 class SimpleClass
29 // class without members
30 class EmptyClass
34 // abstract class
35 abstract class AbstractClass
41 // class deriving above abstract class
50 // class with final method
51 class FinalClass
[all …]
H A Darray_map_object1.phpt13 * 2) class without members
15 * 4) abstract and child class
22 class SimpleClass
36 class SimpleClassPri
46 class SimpleClassPro
56 class EmptyClass
62 abstract class AbstractClass
68 // class deriving the above abstract class
79 class FinalClass
89 class StaticClass
[all …]
H A Darray_map_object2.phpt2 Test array_map() function : object functionality - with non-existent class and method
12 * 1) non-existent class
13 * 2) existent class and non-existent function
15 echo "*** Testing array_map() : with non-existent class and method ***\n";
17 class SimpleClass
28 echo "-- with non-existent class --\n";
31 echo "-- with existent class and non-existent method --\n";
37 *** Testing array_map() : with non-existent class and method ***
38 -- with non-existent class --
40 Warning: array_map() expects parameter 1 to be a valid callback, class 'non-existent' not found in …
[all …]
/PHP-5.5/tests/lang/
H A D032.phpt5 class A {
9 class B extends A {
13 class C extends B {
17 class D extends A {
20 class F extends D {
24 // Following class definition should fail, but cannot test
26 class X {
/PHP-5.5/ext/standard/tests/class_object/
H A Dclass_exists_basic_001.phpt6 * Description: Checks if the class exists
17 echo "Calling class_exists() on non-existent class with autoload explicitly enabled:\n";
19 echo "\nCalling class_exists() on existing class with autoload explicitly enabled:\n";
27 echo "\nCalling class_exists() on non-existent class with autoload unspecified:\n";
29 echo "\nCalling class_exists() on existing class with autoload unspecified:\n";
36 Calling class_exists() on non-existent class with autoload explicitly enabled:
40 Calling class_exists() on existing class with autoload explicitly enabled:
43 Calling class_exists() on non-existent class with autoload explicitly enabled:
46 Calling class_exists() on existing class with autoload explicitly disabled:
49 Calling class_exists() on non-existent class with autoload unspecified:
[all …]

Completed in 48 milliseconds

12345678910>>...90