| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function assertDefaultHandlers(Logger $logger) |
||
| 22 | { |
||
| 23 | $handlers = []; |
||
| 24 | $exception = null; |
||
| 25 | do { |
||
| 26 | try { |
||
| 27 | $handlers[] = $handler = $logger->popHandler(); |
||
|
|
|||
| 28 | } catch (\Exception $e) { |
||
| 29 | $exception = $e; |
||
| 30 | } |
||
| 31 | } while (is_null($exception)); |
||
| 32 | |||
| 33 | $this->assertSame([], $handlers, 'There are more handlers defined than should be'); |
||
| 34 | } |
||
| 66 |