summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/028.phpt
blob: 5f1e7a2faa9b24e5a8164a8cdb2460f79fa2d360 (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";
}
?>
--EXPECTF--
Done!