php-src/ext/reflection/tests/028.phpt

20 lines
230 B
PHP

--TEST--
ReflectionGenerator::__construct()
--FILE--
<?php
function foo()
{
yield 1;
}
$g = foo();
$g->next();
try {
$r = new ReflectionGenerator($g);
} catch (ReflectionException $e) {
echo "Done!\n";
}
?>
--EXPECTF--
Done!