Skip to content

Commit 13fc27f

Browse files
committed
Merge remote-tracking branch 'origin/path-branch-coverage' into codecoverage-contract-update
2 parents 7b4cf80 + f3714ff commit 13fc27f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/CodeCoverage.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ final class CodeCoverage
134134
private $report;
135135

136136
/**
137+
* Determine whether to display branch coverage
138+
*
137139
* @var bool
138140
*/
139-
private $determineBranchCoverage;
141+
private $determineBranchCoverage = false;
140142

141143
/**
142144
* @throws RuntimeException

src/Driver/PHPDBG.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* This file is part of the php-code-coverage package.
44
*
55
* (c) Sebastian Bergmann <[email protected]>
@@ -99,6 +99,13 @@ private function detectExecutedLines(array $sourceLines, array $dbgData): array
9999
}
100100
}
101101

102+
foreach ($sourceLines as $file => $lines) {
103+
$sourceLines[$file] = [
104+
'lines' => $lines,
105+
'functions' => []
106+
];
107+
}
108+
102109
return $sourceLines;
103110
}
104111
}

0 commit comments

Comments
 (0)