1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/Zend/tests/exception_001.phpt
T
Steph Fox 6d8760677d - killed off UEXPECT
- altered EXPECT for parser errors. This may or may not be a Good Thing.
2008-05-26 14:33:44 +00:00

39 lines
579 B
PHP

--TEST--
Testing nested exceptions
--FILE--
<?php
try {
try {
try {
try {
throw new Exception(NULL);
} catch (Exception $e) {
var_dump($e->getMessage());
throw $e;
}
} catch (Exception $e) {
var_dump($e->getMessage());
throw $e;
}
} catch (Exception $e) {
var_dump($e->getMessage());
throw $e;
}
} catch (Exception $e) {
var_dump($e->getMessage());
throw $e;
}
?>
--EXPECTF--
unicode(0) ""
unicode(0) ""
unicode(0) ""
unicode(0) ""
Fatal error: Uncaught exception 'Exception' in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d