Skip to content

Commit 6a4877e

Browse files
committed
Add test for previous commit
1 parent ddf41d3 commit 6a4877e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
Aborted yield during object instantiation
3+
--FILE--
4+
<?php
5+
6+
class Foo {
7+
public function __construct() {}
8+
}
9+
10+
function gen() {
11+
$x = new Foo(yield);
12+
}
13+
14+
gen()->rewind();
15+
16+
?>
17+
===DONE===
18+
--EXPECT--
19+
===DONE===

0 commit comments

Comments
 (0)