1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00
Files
archived-php-src/Zend/tests/generators/aborted_yield_during_new.phpt
T
2015-06-20 18:38:59 +02:00

20 lines
218 B
PHP

--TEST--
Aborted yield during object instantiation
--FILE--
<?php
class Foo {
public function __construct() {}
}
function gen() {
$x = new Foo(yield);
}
gen()->rewind();
?>
===DONE===
--EXPECT--
===DONE===