Пример #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testInvalidOption()
 {
     $this->object->set('foobar');
 }
Пример #2
0
 /**
  * Set value
  * @param mixed $value new value
  * @throws \InvalidArgumentException
  */
 public function set($value)
 {
     parent::set($value);
     $this->UnitObject = $this->getNewPaceUnitObject($value);
 }