mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
20 lines
230 B
PHP
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!
|