Exemple #1
0
 /**
  * @param \Exception $exception
  * @param bool $verbose
  *
  * @return string
  */
 public function presentException(\Exception $exception, $verbose = false)
 {
     return $this->exceptionPresenter->presentException($exception, $verbose);
 }
 function it_should_be_a_proxy_for_an_exception_presenter(ExceptionPresenter $exceptionPresenter, \Exception $exception)
 {
     $result = 'this is the result';
     $exceptionPresenter->presentException($exception, true)->willReturn($result);
     $this->presentException($exception, true)->shouldReturn($result);
 }