Skip to content

Commit f82be05

Browse files
committed
add test for alone try block, and update test scripts summary
1 parent dacd918 commit f82be05

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

Zend/tests/try_catch_finally_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Try catch finally
2+
Try catch finally catch(multi catch blocks)
33
--FILE--
44
<?php
55

Zend/tests/try_catch_finally_003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Try catch finally
2+
Try catch finally (multi catch blcoks with return)
33
--FILE--
44
<?php
55

Zend/tests/try_catch_finally_004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Try catch finally
2+
Try catch finally (re-throw exception in catch block)
33
--CREDITS--
44
adoy
55
--FILE--

Zend/tests/try_finally_004.phpt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
Try without catch/finally block
3+
--FILE--
4+
<?php
5+
function foo () {
6+
try {
7+
echo "3";
8+
}
9+
}
10+
11+
foo();
12+
?>
13+
--EXPECTF--
14+
Fatal error: Cannot use try without catch or finally in %stry_finally_004.php on line %d

0 commit comments

Comments
 (0)