PHPUnit_Framework_Constraint_Or::toString PHP Method

toString() public method

Returns a string representation of the constraint.
public toString ( ) : string
return string
    public function toString()
    {
        $text = '';
        foreach ($this->constraints as $key => $constraint) {
            if ($key > 0) {
                $text .= ' or ';
            }
            $text .= $constraint->toString();
        }
        return $text;
    }
PHPUnit_Framework_Constraint_Or