PHP Class PhpSpec\Formatter\Presenter\Exception\AbstractPhpSpecExceptionPresenter

显示文件 Open project: phpspec/phpspec

Public Methods

Method Description
presentException ( PhpSpec\Exception\Exception $exception ) : string

Protected Methods

Method Description
presentFileCode ( string $file, integer $lineno, integer $context = 6 ) : string

Private Methods

Method Description
getExceptionExamplePosition ( PhpSpec\Exception\Exception $exception ) : array

Method Details

presentException() public method

public presentException ( PhpSpec\Exception\Exception $exception ) : string
$exception PhpSpec\Exception\Exception
return string

presentFileCode() abstract protected method

abstract protected presentFileCode ( string $file, integer $lineno, integer $context = 6 ) : string
$file string
$lineno integer
$context integer
return string