| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | public function testHandle() { |
||
| 33 | |||
| 34 | $errorHandler = new ErrorHandler(new ParentsStrategy()); |
||
| 35 | |||
| 36 | $errorHandler->registerHandler(new InvalidArgumentExceptionHandler(), InvalidArgumentException::class); |
||
| 37 | $errorHandler->registerHandler(new RuntimeExceptionHandler(), RuntimeException::class); |
||
| 38 | $errorHandler->registerHandler(new ExceptionHandler(), Exception::class); |
||
| 39 | |||
| 40 | $errorHandler->handle(new RuntimeException('Hello World!')); |
||
| 41 | |||
| 42 | $this->assertHandleException(self::getRootFolder() . RuntimeExceptionHandler::FILE); |
||
| 43 | $this->assertHandleException(self::getRootFolder() . ExceptionHandler::FILE); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |