PHP Class PhpSpec\Formatter\Presenter\SimplePresenter

Inheritance: implements PhpSpec\Formatter\Presenter\Presenter
Show file Open project: phpspec/phpspec

Public Methods

Method Description
__construct ( PhpSpec\Formatter\Presenter\Value\ValuePresenter $valuePresenter, PhpSpec\Formatter\Presenter\Exception\ExceptionPresenter $exceptionPresenter )
presentException ( Exception $exception, boolean $verbose = false ) : string
presentString ( string $string ) : string
presentValue ( mixed $value ) : string

Method Details

__construct() public method

public __construct ( PhpSpec\Formatter\Presenter\Value\ValuePresenter $valuePresenter, PhpSpec\Formatter\Presenter\Exception\ExceptionPresenter $exceptionPresenter )
$valuePresenter PhpSpec\Formatter\Presenter\Value\ValuePresenter
$exceptionPresenter PhpSpec\Formatter\Presenter\Exception\ExceptionPresenter

presentException() public method

public presentException ( Exception $exception, boolean $verbose = false ) : string
$exception Exception
$verbose boolean
return string

presentString() public method

public presentString ( string $string ) : string
$string string
return string

presentValue() public method

public presentValue ( mixed $value ) : string
$value mixed
return string