@@ 77-84 (lines=8) @@ | ||
74 | /** |
|
75 | * {@inheritdoc} |
|
76 | */ |
|
77 | public function addError(Test $testCase, Throwable $throwable, float $time): void |
|
78 | { |
|
79 | $testCase = $this->testCaseFromTest($testCase); |
|
80 | ||
81 | $this->state->add(TestResult::fromTestCase($testCase, TestResult::FAIL)); |
|
82 | ||
83 | $this->style->writeError($this->state, $throwable); |
|
84 | } |
|
85 | ||
86 | /** |
|
87 | * {@inheritdoc} |
|
@@ 192-199 (lines=8) @@ | ||
189 | /** |
|
190 | * {@inheritdoc} |
|
191 | */ |
|
192 | public function endTest(Test $testCase, float $time): void |
|
193 | { |
|
194 | $testCase = $this->testCaseFromTest($testCase); |
|
195 | ||
196 | if (!$this->state->existsInTestCase($testCase)) { |
|
197 | $this->state->add(TestResult::fromTestCase($testCase, TestResult::PASS)); |
|
198 | } |
|
199 | } |
|
200 | ||
201 | /** |
|
202 | * Intentionally left blank as we output things on events of the listener. |