/** * @test * @expectedException \InvalidArgumentException */ public function throwsInvalidArgumentExceptionIfMaxIsLesserThanMin() { $min = 2; $max = 1; //sets max before because $min and $max are 0 by default $this->beVariant->setMax($min); $this->beVariant->setMin($min); $this->beVariant->setMax($max); }