summaryrefslogtreecommitdiff
path: root/tests/lang/042.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-05-15 21:04:07 +0200
committerNikita Popov <nikic@php.net>2015-05-15 23:40:32 +0200
commitc9f27ee4227268bc74fc54e0e06102317e614804 (patch)
tree35680688ecebfd7bc1321f21a6919133dffa666f /tests/lang/042.phpt
parent34e6fbbfed6bd63e7f71ca61ff73ca67d0c12b7b (diff)
downloadphp-git-c9f27ee4227268bc74fc54e0e06102317e614804.tar.gz
Display EngineExceptions like ordinary exceptions
TypeException stays as-is for now because it uses messages that are incompatible with the way exception messages are displayed. closure_038.phpt and a few others now show that we're generating too many exceptions for compound operations on undefined properties -- this needs to be fixed in a followup.
Diffstat (limited to 'tests/lang/042.phpt')
-rw-r--r--tests/lang/042.phpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lang/042.phpt b/tests/lang/042.phpt
index 217aab83e3..ad6e081222 100644
--- a/tests/lang/042.phpt
+++ b/tests/lang/042.phpt
@@ -16,4 +16,7 @@ echo $wrongClassname::B."\n";
--EXPECTF--
foo
-Fatal error: Class 'B' not found in %s042.php on line %d
+Fatal error: Uncaught exception 'EngineException' with message 'Class 'B' not found' in %s042.php:%d
+Stack trace:
+#0 {main}
+ thrown in %s042.php on line %d