ru_php/ext/reflection/tests/028.phpt

19 lines
219 B
PHP

--TEST--
ReflectionGenerator::__construct()
--FILE--
<?php
function foo()
{
yield 1;
}
$g = foo();
$g->next();
$r = new ReflectionGenerator($g);
var_dump($r);
?>
--EXPECTF--
object(ReflectionGenerator)#%d (0) {
}