xref: /PHP-7.2/ext/reflection/tests/028.phpt (revision ed4216c9)
1--TEST--
2ReflectionGenerator::__construct()
3--FILE--
4<?php
5function foo()
6{
7	yield 1;
8}
9
10$g = foo();
11$g->next();
12
13try {
14	$r = new ReflectionGenerator($g);
15} catch (ReflectionException $e) {
16	echo "Done!\n";
17}
18?>
19--EXPECTF--
20Done!
21