Skip to content

Commit 4680583

Browse files
committed
Add test
1 parent 13198dd commit 4680583

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
--TEST--
2+
'goto' in with() jumps out of the block, considered a success
3+
--FILE--
4+
<?php
5+
6+
require 'basic_manager.inc';
7+
8+
with (new Manager() as $value) {
9+
echo "In with() block\n";
10+
goto out;
11+
echo "Not executed\n";
12+
var_dump($value);
13+
}
14+
out:
15+
16+
echo "After with() block\n";
17+
18+
?>
19+
--EXPECT--
20+
Manager::enterContext()
21+
In with() block
22+
Manager::exitContext(null)
23+
After with() block

0 commit comments

Comments
 (0)