meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
302 Bytes
--TEST--
ReflectionGenerator::getTrace()
--FILE--
<?php
function foo()
{
yield 1;
}
$g = foo();
$r = new ReflectionGenerator($g);
$g->next();
try {
$r->getTrace();
} catch (ReflectionException $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Cannot fetch information from a closed Generator