php-src/ext/reflection/tests/028.phpt
2020-02-03 22:52:20 +01:00

21 lines
238 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";
}
?>
--EXPECT--
Done!