We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3950679 commit 9cb62d9Copy full SHA for 9cb62d9
spec/Exception/BatchExceptionSpec.php
@@ -22,11 +22,16 @@ function it_is_an_exception()
22
23
function it_has_a_result()
24
{
25
- $this->getResult()->shouldReturn(null);
26
$this->setResult($result = new BatchResult());
27
$this->getResult()->shouldReturn($result);
28
}
29
+ function it_throws_an_exception_if_the_result_is_already_set()
30
+ {
31
+ $this->getResult()->shouldHaveType('Http\Client\BatchResult');
32
+ $this->shouldThrow('Http\Client\Exception\InvalidArgumentException')->duringSetResult(new BatchResult());
33
+ }
34
+
35
function it_has_an_exception_for_a_request(RequestInterface $request, Exception $exception)
36
37
$this->getExceptionFor($request)->shouldReturn(null);
0 commit comments