| 1 | <?php |
||
| 14 | class ProcessPrinter |
||
| 15 | { |
||
| 16 | /** @var SingleResultFormatter */ |
||
| 17 | private $singleResultFormatter; |
||
| 18 | |||
| 19 | /** @var OutputInterface */ |
||
| 20 | private $output; |
||
| 21 | |||
| 22 | /** @var int */ |
||
| 23 | private $counter = 0; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ProcessPrinter constructor. |
||
| 27 | * @param SingleResultFormatter $singleResultFormatter |
||
| 28 | * @param OutputInterface $output |
||
| 29 | */ |
||
| 30 | 33 | public function __construct(SingleResultFormatter $singleResultFormatter, OutputInterface $output) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param ProcessEvent $processEvent |
||
| 38 | * @throws \BadMethodCallException |
||
| 39 | */ |
||
| 40 | 33 | public function onProcessParsingCompleted(ProcessEvent $processEvent) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @param PrintableTestResultInterface $testResult |
||
| 51 | */ |
||
| 52 | 33 | private function printFormattedWithCounter(PrintableTestResultInterface $testResult) |
|
| 64 | } |
||
| 65 |