summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/028.phpt
blob: bf16785c185a38a30f2418ddd8492087da87268a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
ReflectionGenerator::__construct()
--FILE--
<?php
function foo()
{
    yield 1;
}

$g = foo();
$g->next();

try {
    $r = new ReflectionGenerator($g);
} catch (ReflectionException $e) {
    echo "Done!\n";
}
?>
--EXPECT--
Done!