xref: /php-src/ext/reflection/tests/028.phpt (revision 8094bd1b)
1--TEST--
2ReflectionGenerator::__construct()
3--FILE--
4<?php
5function foo()
6{
7    yield 1;
8}
9
10$g = foo();
11$g->next();
12
13$r = new ReflectionGenerator($g);
14var_dump($r);
15?>
16--EXPECTF--
17object(ReflectionGenerator)#%d (0) {
18}
19