PopTest\Code\FunctionTest::testClosure PHP Method

testClosure() public method

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