Home
last modified time | relevance | path

Searched refs:class (Results 201 – 225 of 3241) sorted by relevance

12345678910>>...130

/PHP-5.6/Zend/tests/
H A Derrmsg_029.phpt2 errmsg: cannot use 'parent' as class name
6 class parent {
12 Fatal error: Cannot use 'parent' as class name as it is reserved in %s on line %d
H A Dbug43183.phpt2 Bug #43183 ("use" of the same class in difference scripts results in a fatal error)
7 class Foo {}
8 class Bar {}
H A Dbug38772.phpt5 class A {
16 class B extends A {
22 class C extends A {
28 class D extends A {
H A Dbug42937.phpt2 Bug #42937 (__call() method not invoked when methods are called on parent from child class)
5 class A {
11 class C {
17 class B extends A {
H A Dbug62892.phpt10 class myClass {
15 $class = new \ReflectionClass('myClass');
16 var_dump($class->getTraitAliases());
H A Dclass_alias_019.phpt2 Trying to redeclare class name in global scope inside namespace
9 class foo {
17 Warning: Cannot redeclare class foo in %s on line %d
H A Dbug29689.phpt5 class foo {
15 class bar extends foo {
25 class baz extends bar {
30 class bar2 extends foo {
38 class baz2 extends bar2 {
H A Dbug41633_2.phpt2 Bug #41633.2 (Undefined class constants must not be substituted by strings)
5 class Foo {
11 Fatal error: Undefined class constant 'self::B' in %sbug41633_2.php on line 5
H A Dbug70958.phpt2 Bug #70958 (Invalid opcode while using ::class as trait method paramater default value)
7 function bar($a = self::class) {
12 class B {
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
H A Dbug45742.phpt2 Bug #45742 Wrong class array inpretetion using constant indexes
5 class Constants {
11 class ArrayProperty {
H A Dns_029.phpt2 029: Name ambiguity (class name & import name)
7 class Foo {
12 Fatal error: Cannot declare class Foo because the name is already in use in %sns_029.php on line 4
/PHP-5.6/Zend/tests/traits/
H A Derror_004.phpt2 Trying to use a class as trait
6 class abc {
9 class A {
H A Derror_005.phpt2 Trying to use a final class as trait
6 final class abc {
9 class A {
H A Derror_006.phpt2 Trying to use an abstract class as trait
6 abstract class abc {
9 class A {
H A Dget_declared_traits_003.phpt6 class a { }
9 abstract class d { }
10 final class e { }
H A Dstatic_002.phpt14 class A {
18 $class = "A";
19 echo $class::test();
/PHP-5.6/ext/reflection/tests/
H A DReflectionMethod_getClosure_error.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' );
33 $method = $class->getMethod( 'foo' );
72 string(72) "Given object is not an instance of the class this method was declared in"
H A DReflectionMethod_basic2.phpt2 ReflectionMethod class __toString() and export() methods
6 function reflectMethod($class, $method) {
7 $methodInfo = new ReflectionMethod($class, $method);
9 echo "Reflecting on method $class::$method()\n\n";
13 var_dump(ReflectionMethod::export($class, $method, true));
17 class TestClass
36 class DerivedClass extends TestClass {}
156 Parameter #0 [ <required> $class ]
166 Parameter #0 [ <required> $class ]
/PHP-5.6/ext/standard/tests/assert/
H A Dassert.phpt17 class a
21 echo "class assertion failed $line,\"$myev\"\n";
43 class assertion failed 25,"$a != 0"
44 class assertion failed 29,"$a != 0"
/PHP-5.6/ext/standard/tests/class_object/
H A Dmethod_exists_basic_002.phpt6 * Description: Returns true if the object has this class as one of its parents
11 echo " ---(Internal classes, using string class name)---\n";
17 echo "\n ---(Internal classes, using class instance)---\n";
26 ---(Internal classes, using string class name)---
30 ---(Internal classes, using class instance)---
H A Dget_class_methods_error_001.phpt5 /* Prototype : proto array get_class_methods(mixed class)
6 * Description: Returns an array of method names for class or class instance.
23 $class = 1;
25 var_dump( get_class_methods($class, $extra_arg) );
/PHP-5.6/ext/spl/tests/
H A Dclass_implements_basic2.phpt15 class fooImpl implements foo {}
18 class barImpl implements bar {}
20 class foobarImpl implements foo, bar {}
22 class fooViaBarImpl extends barImpl implements foo {}
24 class fooExtended extends fooImpl {}
/PHP-5.6/ext/standard/tests/general_functions/
H A Dbug35229.phpt5 class test2 {
11 function __autoload($class)
13 eval('class test1 extends test2 {}');

Completed in 56 milliseconds

12345678910>>...130