public function testRemovingNotDefinedConditionThrowsAnException() { $this->setExpectedException(\InvalidArgumentException::class, 'Condition "' . self::CONDITION_NAME . '" does not exist'); $this->object->removeConditionByName(self::CONDITION_NAME); }