diff options
Diffstat (limited to 'Zend/tests/catch.phpt')
-rwxr-xr-x | Zend/tests/catch.phpt | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/Zend/tests/catch.phpt b/Zend/tests/catch.phpt index 624039afa..0ec5cf759 100755 --- a/Zend/tests/catch.phpt +++ b/Zend/tests/catch.phpt @@ -1,23 +1,23 @@ ---TEST--
-catch shouldn't call __autoload
---FILE--
-<?php
-function __autoload($name) {
- echo("AUTOLOAD '$name'\n");
- eval("class $name {}");
-}
-
-
-try {
-} catch (A $e) {
-}
-
-try {
- throw new Exception();
-} catch (B $e) {
-} catch (Exception $e) {
- echo "ok\n";
-}
-?>
---EXPECT--
-ok
+--TEST-- +catch shouldn't call __autoload +--FILE-- +<?php +function __autoload($name) { + echo("AUTOLOAD '$name'\n"); + eval("class $name {}"); +} + + +try { +} catch (A $e) { +} + +try { + throw new Exception(); +} catch (B $e) { +} catch (Exception $e) { + echo "ok\n"; +} +?> +--EXPECT-- +ok |