You are here

function AggregateExceptionSpec::it_should_append_exception_through_append_method in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Exception/Prediction/AggregateExceptionSpec.php \spec\Prophecy\Exception\Prediction\AggregateExceptionSpec::it_should_append_exception_through_append_method()

Parameters

\Prophecy\Exception\Prediction\PredictionException $exception:

File

vendor/phpspec/prophecy/spec/Prophecy/Exception/Prediction/AggregateExceptionSpec.php, line 37

Class

AggregateExceptionSpec

Namespace

spec\Prophecy\Exception\Prediction

Code

function it_should_append_exception_through_append_method($exception) {
  $exception
    ->getMessage()
    ->willReturn('Exception #1');
  $this
    ->append($exception);
  $this
    ->getExceptions()
    ->shouldReturn(array(
    $exception,
  ));
}