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