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