/** * @expectedException \InvalidArgumentException */ public function testInvalidOption() { $this->object->set('foobar'); }
/** * Set value * @param mixed $value new value * @throws \InvalidArgumentException */ public function set($value) { parent::set($value); $this->UnitObject = $this->getNewPaceUnitObject($value); }