library/ObjectValidator.php
public function getErrorMessage()
    {
        $sMessage = '';
        $aErrors = $this->_getErrors();
        if (!empty($aErrors)) {
            $sMessage = "Expected and actual parameters do not match: \n";
            $sMessage .= implode("\n", $aErrors);
        }

        return $sMessage;
    }
public function getErrorMessage()
    {
        $sMessage = '';
        $aErrors = $this->_getErrors();
        if (!empty($aErrors)) {
            $sMessage = "Expected and actual parameters do not match: \n";
            $sMessage .= implode("\n", $aErrors);
        }

        return $sMessage;
    }
public function getErrorMessage ( ) { $ sMessage = '' ; $ aErrors = $ this -> _getErrors ( ) ; if ( ! empty ( $ aErrors ) ) { $ sMessage = "Expected and actual parameters do not match: \n" ; $ sMessage .= implode ( "\n" , $ aErrors ) ; } return $ sMessage ; }
Returns formed error message if parameters was not valid

@return string
Returns formed error message if parameters was not valid