summaryrefslogtreecommitdiff
path: root/Zend/tests/try/catch_002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/try/catch_002.phpt')
-rw-r--r--Zend/tests/try/catch_002.phpt22
1 files changed, 11 insertions, 11 deletions
diff --git a/Zend/tests/try/catch_002.phpt b/Zend/tests/try/catch_002.phpt
index 11dbccf7df..73284492da 100644
--- a/Zend/tests/try/catch_002.phpt
+++ b/Zend/tests/try/catch_002.phpt
@@ -5,25 +5,25 @@ Catching an exception in a constructor
class MyObject
{
- function __construct()
- {
- throw new Exception();
- echo __METHOD__ . "() Must not be reached\n";
- }
+ function __construct()
+ {
+ throw new Exception();
+ echo __METHOD__ . "() Must not be reached\n";
+ }
- function __destruct()
- {
- echo __METHOD__ . "() Must not be called\n";
- }
+ function __destruct()
+ {
+ echo __METHOD__ . "() Must not be called\n";
+ }
}
try
{
- new MyObject();
+ new MyObject();
}
catch(Exception $e)
{
- echo "Caught\n";
+ echo "Caught\n";
}
?>