Example #1
0
 /**
  * Evaluates the constraint for parameter $other. Returns TRUE if the
  * constraint is met, FALSE otherwise.
  *
  * This method can be overridden to implement the evaluation algorithm.
  *
  * @param  mixed $other Value or object to evaluate.
  * @return bool
  */
 protected function matches($other)
 {
     if (!$other instanceof PHPUnit_Extensions_Database_DataSet_IDataSet) {
         throw new InvalidArgumentException('PHPUnit_Extensions_Database_DataSet_IDataSet expected');
     }
     return $this->value->matches($other);
 }