summaryrefslogtreecommitdiff
path: root/Zend/tests/catch_003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/catch_003.phpt')
-rwxr-xr-xZend/tests/catch_003.phpt38
1 files changed, 0 insertions, 38 deletions
diff --git a/Zend/tests/catch_003.phpt b/Zend/tests/catch_003.phpt
deleted file mode 100755
index 414d50f815..0000000000
--- a/Zend/tests/catch_003.phpt
+++ /dev/null
@@ -1,38 +0,0 @@
---TEST--
-Catching an exception in a constructor fired form a static method
---FILE--
-<?php
-
-class MyObject
-{
- function fail()
- {
- throw new Exception();
- }
-
- function __construct()
- {
- self::fail();
- 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===