| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | 2 | public function handle(): bool |
|
| 8 | { |
||
| 9 | 2 | if (!$this->canHandle()) { |
|
| 10 | return false; |
||
| 11 | } |
||
| 12 | |||
| 13 | 2 | $exceptionClass = $this->getExceptionClass(); |
|
| 14 | 2 | $this->initialStub->method($this->methodName) |
|
| 15 | 2 | ->will($this->testCase->throwException(new $exceptionClass)); |
|
| 16 | |||
| 17 | 2 | return true; |
|
| 18 | } |
||
| 31 |