/** * @test * @expectedException \Apha\Annotations\ReadOnlyException */ public function setMethodNameIsWriteOnce() { $annotation = new CommandHandler(); $annotation->setMethodName('bar'); $annotation->setMethodName('baz'); }