summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionMethod_constructor_error1.phpt')
-rw-r--r--ext/reflection/tests/ReflectionMethod_constructor_error1.phpt48
1 files changed, 24 insertions, 24 deletions
diff --git a/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt b/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
index 5c980536b9..186c61b2b0 100644
--- a/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
+++ b/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
@@ -14,52 +14,52 @@ class TestClass
try {
- echo "\nWrong type of argument (bool):\n";
- $methodInfo = new ReflectionMethod(true);
+ echo "\nWrong type of argument (bool):\n";
+ $methodInfo = new ReflectionMethod(true);
} catch (Exception $e) {
- print $e->__toString();
+ print $e->__toString();
}
try {
- echo "\nWrong type of argument (int):\n";
- $methodInfo = new ReflectionMethod(3);
+ echo "\nWrong type of argument (int):\n";
+ $methodInfo = new ReflectionMethod(3);
} catch (Exception $e) {
- print $e->__toString();
+ print $e->__toString();
}
try {
- echo "\nWrong type of argument (bool, string):\n";
- $methodInfo = new ReflectionMethod(true, "foo");
+ echo "\nWrong type of argument (bool, string):\n";
+ $methodInfo = new ReflectionMethod(true, "foo");
} catch (Exception $e) {
- print $e->__toString();
+ print $e->__toString();
}
try {
- echo "\nWrong type of argument (string, bool):\n";
- $methodInfo = new ReflectionMethod('TestClass', true);
+ echo "\nWrong type of argument (string, bool):\n";
+ $methodInfo = new ReflectionMethod('TestClass', true);
} catch (Exception $e) {
- print $e->__toString();
+ print $e->__toString();
}
try {
- echo "\nNo method given:\n";
- $methodInfo = new ReflectionMethod("TestClass");
+ echo "\nNo method given:\n";
+ $methodInfo = new ReflectionMethod("TestClass");
} catch (Exception $e) {
- print $e->__toString();
+ print $e->__toString();
}
try {
- echo "\nClass and Method in same string, bad method name:\n";
- $methodInfo = new ReflectionMethod("TestClass::foop::dedoop");
+ echo "\nClass and Method in same string, bad method name:\n";
+ $methodInfo = new ReflectionMethod("TestClass::foop::dedoop");
} catch (Exception $e) {
- print $e->__toString();
+ print $e->__toString();
}
try {
- echo "\nClass and Method in same string, bad class name:\n";
- $methodInfo = new ReflectionMethod("TestCla::foo");
+ echo "\nClass and Method in same string, bad class name:\n";
+ $methodInfo = new ReflectionMethod("TestCla::foo");
} catch (Exception $e) {
- print $e->__toString();
+ print $e->__toString();
}
try {
- echo "\nClass and Method in same string (ok):\n";
- $methodInfo = new ReflectionMethod("TestClass::foo");
+ echo "\nClass and Method in same string (ok):\n";
+ $methodInfo = new ReflectionMethod("TestClass::foo");
} catch (Exception $e) {
- print $e->__toString();
+ print $e->__toString();
}
?>