summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
commitf8d795820e780a6322e054c26c581570613c14f0 (patch)
tree99d3ae01ce564752807341c5743863b4c92513f8 /ext/reflection/tests/ReflectionMethod_constructor_error2.phpt
parentd2cb200e10ada6fa44c54a29292bb4665728fff0 (diff)
downloadphp-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz
Reindent phpt files
Diffstat (limited to 'ext/reflection/tests/ReflectionMethod_constructor_error2.phpt')
-rw-r--r--ext/reflection/tests/ReflectionMethod_constructor_error2.phpt30
1 files changed, 15 insertions, 15 deletions
diff --git a/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt b/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt
index 723ab00f84..d84fa5dcff 100644
--- a/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt
+++ b/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt
@@ -14,39 +14,39 @@ class TestClass
try {
- echo "Too few arguments:\n";
- $methodInfo = new ReflectionMethod();
+ echo "Too few arguments:\n";
+ $methodInfo = new ReflectionMethod();
} catch (TypeError $re) {
- echo "Ok - ".$re->getMessage().PHP_EOL;
+ echo "Ok - ".$re->getMessage().PHP_EOL;
}
try {
- echo "\nToo many arguments:\n";
- $methodInfo = new ReflectionMethod("TestClass", "foo", true);
+ echo "\nToo many arguments:\n";
+ $methodInfo = new ReflectionMethod("TestClass", "foo", true);
} catch (TypeError $re) {
- echo "Ok - ".$re->getMessage().PHP_EOL;
+ echo "Ok - ".$re->getMessage().PHP_EOL;
}
try {
- //invalid class
- $methodInfo = new ReflectionMethod("InvalidClassName", "foo");
+ //invalid class
+ $methodInfo = new ReflectionMethod("InvalidClassName", "foo");
} catch (ReflectionException $re) {
- echo "Ok - ".$re->getMessage().PHP_EOL;
+ echo "Ok - ".$re->getMessage().PHP_EOL;
}
try {
- //invalid 1st param
- $methodInfo = new ReflectionMethod([], "foo");
+ //invalid 1st param
+ $methodInfo = new ReflectionMethod([], "foo");
} catch (ReflectionException $re) {
- echo "Ok - ".$re->getMessage().PHP_EOL;
+ echo "Ok - ".$re->getMessage().PHP_EOL;
}
try{
- //invalid 2nd param
- $methodInfo = new ReflectionMethod("TestClass", []);
+ //invalid 2nd param
+ $methodInfo = new ReflectionMethod("TestClass", []);
} catch (TypeError $re) {
- echo "Ok - ".$re->getMessage().PHP_EOL;
+ echo "Ok - ".$re->getMessage().PHP_EOL;
}
?>