PHPUnit_Framework_Constraint_Or::evaluate PHP Method

evaluate() public method

Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
public evaluate ( mixed $other ) : boolean
$other mixed Value or object to evaluate.
return boolean
    public function evaluate($other)
    {
        foreach ($this->constraints as $constraint) {
            if ($constraint->evaluate($other)) {
                return TRUE;
            }
        }
        return FALSE;
    }
PHPUnit_Framework_Constraint_Or