xref: /PHP-8.3/ext/reflection/tests/028.phpt (revision f8d79582)
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--EXPECT--
20Done!
21