diff options
Diffstat (limited to 'Zend/tests/catch_002.phpt')
-rwxr-xr-x | Zend/tests/catch_002.phpt | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Zend/tests/catch_002.phpt b/Zend/tests/catch_002.phpt deleted file mode 100755 index 11d736abe2..0000000000 --- a/Zend/tests/catch_002.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -Catching an exception in a constructor ---FILE-- -<?php - -class MyObject -{ - function __construct() - { - throw new Exception(); - echo __METHOD__ . "() Must not be reached\n"; - } - - function __destruct() - { - echo __METHOD__ . "() Must not be called\n"; - } -} - -try -{ - new MyObject(); -} -catch(Exception $e) -{ - echo "Caught\n"; -} - -?> -===DONE=== ---EXPECT-- -Caught -===DONE=== |