| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 20 | public function __construct(ConsoleOutput $output) |
||
| 21 | { |
||
| 22 | $streamOutput = $output->getErrorOutput(); |
||
| 23 | if ($streamOutput instanceof StreamOutput) { |
||
|
|
|||
| 24 | $this->output = $streamOutput; |
||
| 25 | } else { |
||
| 26 | // @codeCoverageIgnoreStart |
||
| 27 | throw new \RuntimeException( |
||
| 28 | 'Should never happen. $streamOutput is of wrong type: [' . |
||
| 29 | StreamOutput::class . '] expected , [' |
||
| 30 | . typeOf($streamOutput) . '] given.' |
||
| 31 | ); |
||
| 51 |