Skip to content

Commit 0f1bddd

Browse files
committed
Implement setDetermineBranchCoverage method in PCOV driver
1 parent 8d4aa8e commit 0f1bddd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Driver/PCOV.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,23 @@
99
*/
1010
namespace SebastianBergmann\CodeCoverage\Driver;
1111

12+
use SebastianBergmann\CodeCoverage\RuntimeException;
13+
1214
/**
1315
* Driver for PCOV code coverage functionality.
1416
*
1517
* @codeCoverageIgnore
1618
*/
1719
final class PCOV implements Driver
1820
{
21+
/**
22+
* Specify that branch coverage should be included with collected code coverage information.
23+
*/
24+
public function setDetermineBranchCoverage(bool $flag): void
25+
{
26+
throw new RuntimeException('Branch coverage is not supported in PHPDBG');
27+
}
28+
1929
/**
2030
* Start collection of code coverage information.
2131
*/

0 commit comments

Comments
 (0)