| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 7 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | |||
| 32 | public function testWarningHandler(): void |
||
| 33 | { |
||
| 34 | ob_start(); |
||
| 35 | $this->chain->execute(WarningHandler::class); |
||
| 36 | $warning = ob_get_clean(); |
||
| 37 | |||
| 38 | $this->assertEquals($warning, WarningHandler::class . " has handle an error\n"); |
||
| 39 | } |
||
| 40 | |||
| 41 | public function testErrorHandler(): void |
||
| 42 | { |
||
| 43 | ob_start(); |
||
| 44 | $this->chain->execute(ErrorHandler::class); |
||
| 45 | $error = ob_get_clean(); |
||
| 46 | |||
| 47 | $this->assertEquals($error, ErrorHandler::class . " has handle an error\n"); |
||
| 48 | } |
||
| 50 |