summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_getMethod_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionClass_getMethod_001.phpt')
-rw-r--r--ext/reflection/tests/ReflectionClass_getMethod_001.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/reflection/tests/ReflectionClass_getMethod_001.phpt b/ext/reflection/tests/ReflectionClass_getMethod_001.phpt
index 2f2d790f68..90a3fe9177 100644
--- a/ext/reflection/tests/ReflectionClass_getMethod_001.phpt
+++ b/ext/reflection/tests/ReflectionClass_getMethod_001.phpt
@@ -7,14 +7,14 @@ Steve Seear <stevseea@php.net>
<?php
class pubf {
public function f() {}
- static public function s() {}
+ static public function s() {}
}
class subpubf extends pubf {
}
class protf {
protected function f() {}
- static protected function s() {}
+ static protected function s() {}
}
class subprotf extends protf {
}
@@ -26,7 +26,7 @@ class privf {
class subprivf extends privf {
}
-$classes = array("pubf", "subpubf", "protf", "subprotf",
+$classes = array("pubf", "subpubf", "protf", "subprotf",
"privf", "subprivf");
foreach($classes as $class) {
echo "Reflecting on class $class: \n";
@@ -34,14 +34,14 @@ foreach($classes as $class) {
echo " --> Check for f(): ";
var_dump($rc->getMethod("f"));
echo " --> Check for s(): ";
- var_dump($rc->getMethod("s"));
+ var_dump($rc->getMethod("s"));
echo " --> Check for F(): ";
- var_dump($rc->getMethod("F"));
+ var_dump($rc->getMethod("F"));
echo " --> Check for doesntExist(): ";
try {
var_dump($rc->getMethod("doesntExist"));
} catch (Exception $e) {
- echo $e->getMessage() . "\n";
+ echo $e->getMessage() . "\n";
}
}
?>