diff options
author | Nikita Popov <nikic@php.net> | 2015-05-15 21:04:07 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-05-15 23:40:32 +0200 |
commit | c9f27ee4227268bc74fc54e0e06102317e614804 (patch) | |
tree | 35680688ecebfd7bc1321f21a6919133dffa666f /tests/classes/ctor_visibility.phpt | |
parent | 34e6fbbfed6bd63e7f71ca61ff73ca67d0c12b7b (diff) | |
download | php-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/classes/ctor_visibility.phpt')
-rw-r--r-- | tests/classes/ctor_visibility.phpt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/classes/ctor_visibility.phpt b/tests/classes/ctor_visibility.phpt index 8d3b1c5c50..5014b0fbe2 100644 --- a/tests/classes/ctor_visibility.phpt +++ b/tests/classes/ctor_visibility.phpt @@ -66,4 +66,9 @@ Test::__construct() TestPriv::__construct() DerivedPriv::__construct() -Fatal error: Cannot call private TestPriv::__construct() in %sctor_visibility.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot call private TestPriv::__construct()' in %sctor_visibility.php:%d +Stack trace: +#0 %s(%d): DerivedPriv->__construct() +#1 %s(%d): DerivedPriv::f() +#2 {main} + thrown in %sctor_visibility.php on line %d |