diff --git a/src/Logging/LogInterpreter.php b/src/Logging/LogInterpreter.php index 0c5a6651..d210e039 100644 --- a/src/Logging/LogInterpreter.php +++ b/src/Logging/LogInterpreter.php @@ -88,7 +88,9 @@ public function mergeReaders(): TestSuite $this->mergeSuites($mainSuite, $otherSuite); } - assert($mainSuite !== null); + if ($mainSuite === null) { + return new TestSuite('', 0, 0, 0, 0, 0, 0, 0, 0.0, '', [], []); + } return $mainSuite; } diff --git a/src/Runners/PHPUnit/ExecutableTest.php b/src/Runners/PHPUnit/ExecutableTest.php index 38e99dba..14031b17 100644 --- a/src/Runners/PHPUnit/ExecutableTest.php +++ b/src/Runners/PHPUnit/ExecutableTest.php @@ -101,7 +101,7 @@ private function unlinkTempFile(?string &$tempName): void $tempName = null; } - /** + /** * Returns the path to this test's JUnit temp file. * If the temp file does not exist, it will be * created. @@ -121,7 +121,7 @@ final public function deleteTempFiles(): void $this->unlinkTempFile($this->coverageFileName); } - /** + /** * Return the last process command. */ final public function getLastCommand(): string