/**
  * Tests if setting the if twice triggers an exception.
  */
 public function testIfTwiceThrowsException()
 {
     $condition = new Condition();
     $condition->setIfByArray([]);
     $this->setExpectedException(InvalidAggregationOperationArgument::class);
     $condition->setIfByArray([]);
 }