Skip to content

Commit 03c0b92

Browse files
Ignore code path that we cannot test from code coverage
1 parent 2a32751 commit 03c0b92

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Serialization/Serializer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ public function serialize(string $target, CodeCoverage $codeCoverage, bool $incl
102102
$serializedData = serialize($data);
103103

104104
if (str_starts_with(self::class, 'PHPUnitPHAR\\')) {
105+
// @codeCoverageIgnoreStart
105106
$serializedData = $this->stripPharPrefix($serializedData);
107+
// @codeCoverageIgnoreEnd
106108
}
107109

108110
Filesystem::write(

0 commit comments

Comments
 (0)