public function testFinal() { $m = MethodGenerator::factory('testMethod'); $m->setFinal(true); $this->assertTrue($m->isFinal()); }