src/Paraunit/Parser/JSON/LogPrinterV6.php 1 location
|
@@ 197-207 (lines=11) @@
|
194 |
|
$this->currentTestName = ''; |
195 |
|
} |
196 |
|
|
197 |
|
public function startTest(Test $test) |
198 |
|
{ |
199 |
|
$this->currentTestName = $test instanceof SelfDescribing ? $test->toString() : \get_class($test); |
200 |
|
$this->currentTestPass = true; |
201 |
|
|
202 |
|
$this->writeArray([ |
203 |
|
'event' => 'testStart', |
204 |
|
'suite' => $this->currentTestSuiteName, |
205 |
|
'test' => $this->currentTestName, |
206 |
|
]); |
207 |
|
} |
208 |
|
|
209 |
|
/** |
210 |
|
* A test ended. |
src/Paraunit/Parser/JSON/LogPrinter.php 1 location
|
@@ 208-218 (lines=11) @@
|
205 |
|
$this->currentTestName = ''; |
206 |
|
} |
207 |
|
|
208 |
|
public function startTest(Test $test): void |
209 |
|
{ |
210 |
|
$this->currentTestName = $test instanceof SelfDescribing ? $test->toString() : \get_class($test); |
211 |
|
$this->currentTestPass = true; |
212 |
|
|
213 |
|
$this->writeArray([ |
214 |
|
'event' => 'testStart', |
215 |
|
'suite' => $this->currentTestSuiteName, |
216 |
|
'test' => $this->currentTestName, |
217 |
|
]); |
218 |
|
} |
219 |
|
|
220 |
|
/** |
221 |
|
* A test ended. |