PHPUnit_Framework_Constraint_And::evaluate PHP Méthode

evaluate() public méthode

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.
Résultat boolean
    public function evaluate($other)
    {
        $this->lastConstraint = NULL;
        foreach ($this->constraints as $constraint) {
            $this->lastConstraint = $constraint;
            if (!$constraint->evaluate($other)) {
                return FALSE;
            }
        }
        return TRUE;
    }