/** * @expectedException InvalidArgumentException * @expectedExceptionMessage The specified value for slaPriority is not valid */ public function testMaxRangeValueInSlaField() { $this->orderItem->setSlaPriority(11); }