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