summaryrefslogtreecommitdiff
path: root/tests/lang/catchable_error_001.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-05-17 18:59:34 +0200
committerNikita Popov <nikic@php.net>2015-05-17 19:54:12 +0200
commit440481fb3e15d78d0d92432c3adba9067989f43a (patch)
tree9a083b31d5b1987a09f0f36589099c01181cd7ed /tests/lang/catchable_error_001.phpt
parent3ae995f03c8f60c4a4c9718262545cf5a6a08da3 (diff)
downloadphp-git-440481fb3e15d78d0d92432c3adba9067989f43a.tar.gz
Display TypeExceptions like normal exceptions
We currently don't show the argument at which the error actually occured in the trace - should probably either add it or don't display args on incomplete frames altogether, otherwise this'll probably be confusing.
Diffstat (limited to 'tests/lang/catchable_error_001.phpt')
-rw-r--r--tests/lang/catchable_error_001.phpt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lang/catchable_error_001.phpt b/tests/lang/catchable_error_001.phpt
index e3e3692440..f58b26e847 100644
--- a/tests/lang/catchable_error_001.phpt
+++ b/tests/lang/catchable_error_001.phpt
@@ -19,4 +19,8 @@ Catchable fatal error [1]
echo "ALIVE!\n";
?>
--EXPECTF--
-Fatal error: Argument 1 passed to blah() must be an instance of Foo, instance of stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php on line 5
+Fatal error: Uncaught TypeException: Argument 1 passed to blah() must be an instance of Foo, instance of stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php:5
+Stack trace:
+#0 %s(%d): blah()
+#1 {main}
+ thrown in %scatchable_error_001.php on line 5