BetterReflectionTest\Reflection\ReflectionFunctionAbstractTest::testIsGenerator PHP Метод

testIsGenerator() публичный Метод

public testIsGenerator ( string $php, boolean $expectingGenerator )
$php string
$expectingGenerator boolean
    public function testIsGenerator($php, $expectingGenerator)
    {
        $reflector = new FunctionReflector(new StringSourceLocator($php));
        $function = $reflector->reflect('foo');
        $this->assertSame($expectingGenerator, $function->isGenerator());
    }