function it_should_provide_exception_if_set($example) { $this->beConstructedWith($example, null, null, $exception = new \Exception()); $this->getException()->shouldReturn($exception); }