PhpSpec\Formatter\Presenter\Value\BaseExceptionTypePresenter::present PHP Method

present() public method

public present ( mixed $value ) : string
$value mixed
return string
    public function present($value)
    {
        $label = 'exc';
        if ($value instanceof ErrorException) {
            $value = $value->getPrevious();
            $label = 'err';
        }
        return sprintf('[%s:%s("%s")]', $label, get_class($value), $value->getMessage());
    }
BaseExceptionTypePresenter