public function testSetCode_InvalidCode() { $this->setExpectedException('InvalidArgumentException'); $this->object->setCode(99); }