| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function testExecutesWritesResponseOnExceptions() |
||
| 39 | { |
||
| 40 | $ex = new \RuntimeException('foo'); |
||
| 41 | |||
| 42 | $responseMock = $this->getMockBuilder(IResponse::class) |
||
| 43 | ->disableOriginalConstructor() |
||
| 44 | ->getMock(); |
||
| 45 | |||
| 46 | $responseMock->expects($this->atLeastOnce())->method('writeln'); |
||
| 47 | |||
| 48 | $this->cacheManagerMock->expects($this->any())->method('flush')->willThrowException($ex); |
||
| 49 | |||
| 50 | $this->sut->execute($responseMock); |
||
| 51 | } |
||
| 53 |