PopTest\Code\FunctionTest::testClosure PHP Méthode

testClosure() public méthode

public testClosure ( )
    public function testClosure()
    {
        $f = FunctionGenerator::factory('newFunction');
        $f->setClosure(true);
        $this->assertTrue($f->isClosure());
    }