summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt')
-rw-r--r--ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt26
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt b/ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt
index fee873fe01..0401ed1e0c 100644
--- a/ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt
+++ b/ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt
@@ -3,45 +3,45 @@ ReflectionObject::getConstructor() - basic function test
--FILE--
<?php
class NewCtor {
- function __construct() {}
+ function __construct() {}
}
class ExtendsNewCtor extends NewCtor {
}
class X {
- function Y() {}
+ function Y() {}
}
class Y extends X {
}
class B {
- function B() {}
+ function B() {}
}
class C extends B {
- function C() {}
+ function C() {}
}
class D1 extends C {
- function __construct() {}
+ function __construct() {}
}
class D2 extends C {
}
$classes = array('NewCtor', 'ExtendsNewCtor',
- 'B', 'C', 'D1', 'D2', 'X', 'Y');
+ 'B', 'C', 'D1', 'D2', 'X', 'Y');
foreach ($classes as $class) {
- $rc = new ReflectionObject(new $class);
- $rm = $rc->getConstructor();
- if ($rm != null) {
- echo "Constructor of $class: " . $rm->getName() . "\n";
- } else {
- echo "No constructor for $class\n";
- }
+ $rc = new ReflectionObject(new $class);
+ $rm = $rc->getConstructor();
+ if ($rm != null) {
+ echo "Constructor of $class: " . $rm->getName() . "\n";
+ } else {
+ echo "No constructor for $class\n";
+ }
}