1 | <?php |
||
17 | class TestResultContainer implements TestResultContainerInterface, TestResultHandlerInterface |
||
18 | { |
||
19 | /** @var TestResultFormat */ |
||
20 | private $testResultFormat; |
||
21 | |||
22 | /** @var string[] */ |
||
23 | private $filenames; |
||
24 | |||
25 | /** @var PrintableTestResultInterface[] */ |
||
26 | private $testResults; |
||
27 | |||
28 | /** |
||
29 | * TestResultContainer constructor. |
||
30 | * @param TestResultFormat $testResultFormat |
||
31 | */ |
||
32 | 68 | public function __construct(TestResultFormat $testResultFormat) |
|
38 | |||
39 | 39 | public function handleTestResult(AbstractParaunitProcess $process, TestResultInterface $testResult) |
|
54 | |||
55 | 43 | public function addProcessToFilenames(AbstractParaunitProcess $process) |
|
60 | |||
61 | 48 | public function getTestResultFormat(): TestResultFormat |
|
65 | |||
66 | /** |
||
67 | * @return string[] |
||
68 | */ |
||
69 | 26 | public function getFileNames(): array |
|
73 | |||
74 | /** |
||
75 | * @return PrintableTestResultInterface[] |
||
76 | */ |
||
77 | 25 | public function getTestResults(): array |
|
81 | |||
82 | 25 | public function countTestResults(): int |
|
90 | |||
91 | 15 | private function addProcessOutputToResult( |
|
99 | } |
||
100 |