summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_getConstant_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionClass_getConstant_basic.phpt')
-rw-r--r--ext/reflection/tests/ReflectionClass_getConstant_basic.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/reflection/tests/ReflectionClass_getConstant_basic.phpt b/ext/reflection/tests/ReflectionClass_getConstant_basic.phpt
index 59031a26ee..b8906b2070 100644
--- a/ext/reflection/tests/ReflectionClass_getConstant_basic.phpt
+++ b/ext/reflection/tests/ReflectionClass_getConstant_basic.phpt
@@ -3,24 +3,24 @@ ReflectionClass::getConstants()
--FILE--
<?php
class C {
- const a = 'hello from C';
+ const a = 'hello from C';
}
class D extends C {
}
class E extends D {
}
class F extends E {
- const a = 'hello from F';
+ const a = 'hello from F';
}
class X {
}
$classes = array("C", "D", "E", "F", "X");
foreach($classes as $class) {
- echo "Reflecting on class $class: \n";
- $rc = new ReflectionClass($class);
- var_dump($rc->getConstant('a'));
- var_dump($rc->getConstant('doesnotexist'));
+ echo "Reflecting on class $class: \n";
+ $rc = new ReflectionClass($class);
+ var_dump($rc->getConstant('a'));
+ var_dump($rc->getConstant('doesnotexist'));
}
?>
--EXPECT--