| 1 | <?php |
||
| 14 | class BackendOperationFailedExceptionSpec extends ObjectBehavior |
||
| 15 | { |
||
| 16 | function let(Cache $cache) |
||
| 17 | { |
||
| 18 | $this->beConstructedWith($cache, 'operation'); |
||
| 19 | } |
||
| 20 | |||
| 21 | function it_can_return_the_cache_that_failed(Cache $cache) |
||
| 22 | { |
||
| 23 | $this->getCache()->shouldReturn($cache); |
||
| 24 | } |
||
| 25 | |||
| 26 | function it_can_return_the_operation_that_failed() |
||
| 27 | { |
||
| 28 | $this->getOperation()->shouldReturn('operation'); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |