Skip to content

Commit c722fb2

Browse files
kubawerlossebastianbergmann
authored andcommitted
Do not crash when test run in child process ends unexpectedly and --log-junit is used
1 parent b2b3555 commit c722fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Logging/JUnit/JunitXmlLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function testPrepared(): void
202202
*/
203203
public function testFinished(Finished $event): void
204204
{
205-
if ($this->preparationFailed) {
205+
if (!$this->prepared || $this->preparationFailed) {
206206
return;
207207
}
208208

0 commit comments

Comments
 (0)