summaryrefslogtreecommitdiff
path: root/Zend/tests/objects_022.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 /Zend/tests/objects_022.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 'Zend/tests/objects_022.phpt')
-rw-r--r--Zend/tests/objects_022.phpt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zend/tests/objects_022.phpt b/Zend/tests/objects_022.phpt
index 3c2e0d4a51..e96a6aa163 100644
--- a/Zend/tests/objects_022.phpt
+++ b/Zend/tests/objects_022.phpt
@@ -36,4 +36,8 @@ object(bar)#%d (0) {
object(baz)#%d (0) {
}
-Fatal error: Argument 1 passed to foo::testFoo() must be an instance of foo, instance of stdClass given, called in %s on line %d and defined in %s on line %d
+Fatal error: Uncaught TypeException: Argument 1 passed to foo::testFoo() must be an instance of foo, instance of stdClass given, called in %s on line %d and defined in %s:%d
+Stack trace:
+#0 %s(%d): foo->testFoo()
+#1 {main}
+ thrown in %s on line %d