summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_getModifierNames_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionClass_getModifierNames_basic.phpt')
-rw-r--r--ext/reflection/tests/ReflectionClass_getModifierNames_basic.phpt38
1 files changed, 18 insertions, 20 deletions
diff --git a/ext/reflection/tests/ReflectionClass_getModifierNames_basic.phpt b/ext/reflection/tests/ReflectionClass_getModifierNames_basic.phpt
index 91a0a18f1a..f792031a01 100644
--- a/ext/reflection/tests/ReflectionClass_getModifierNames_basic.phpt
+++ b/ext/reflection/tests/ReflectionClass_getModifierNames_basic.phpt
@@ -11,34 +11,34 @@ final class c {}
class x
{
- function __construct() {}
- function __destruct() {}
- private function a() {}
- private static function b() {}
- protected function c() {}
- protected static function d() {}
- public function e() {}
- public static function f() {}
- final function g() {}
- function h() {}
+ function __construct() {}
+ function __destruct() {}
+ private function a() {}
+ private static function b() {}
+ protected function c() {}
+ protected static function d() {}
+ public function e() {}
+ public static function f() {}
+ final function g() {}
+ function h() {}
}
abstract class y
{
- abstract function a();
- abstract protected function b();
+ abstract function a();
+ abstract protected function b();
}
function dump_modifierNames($class) {
- $obj = new ReflectionClass($class);
- var_dump($obj->getName(), Reflection::getModifierNames($obj->getModifiers()));
+ $obj = new ReflectionClass($class);
+ var_dump($obj->getName(), Reflection::getModifierNames($obj->getModifiers()));
}
function dump_methodModifierNames($class) {
- $obj = new ReflectionClass($class);
- foreach($obj->getMethods() as $method) {
- var_dump($obj->getName() . "::" . $method->getName(), Reflection::getModifierNames($method->getModifiers()));
- }
+ $obj = new ReflectionClass($class);
+ foreach($obj->getMethods() as $method) {
+ var_dump($obj->getName() . "::" . $method->getName(), Reflection::getModifierNames($method->getModifiers()));
+ }
}
dump_modifierNames('a');
@@ -49,7 +49,6 @@ dump_methodModifierNames('x');
dump_methodModifierNames('y');
?>
-==DONE==
--EXPECT--
string(1) "a"
array(0) {
@@ -136,4 +135,3 @@ array(2) {
[1]=>
string(9) "protected"
}
-==DONE==