Skip to content

Commit c304be7

Browse files
Remove support for PHPDBG
1 parent 38cb780 commit c304be7

File tree

6 files changed

+1
-220
lines changed

6 files changed

+1
-220
lines changed

ChangeLog.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
1717

1818
* The deprecated methods `SebastianBergmann\CodeCoverage\Driver::forLineCoverage()` and `SebastianBergmann\CodeCoverage\Driver::forLineAndPathCoverage()` have been removed
1919
* This component is no longer supported on PHP 7.3, PHP 7.4 and PHP 8.0
20+
* This component no longer supports PHPDBG
2021
* This component no longer supports Xdebug 2
2122

2223
## [9.2.18] - 2022-MM-DD

src/Driver/PhpdbgDriver.php

-101
This file was deleted.

src/Driver/Selector.php

-5
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,13 @@ final class Selector
1919
/**
2020
* @throws NoCodeCoverageDriverAvailableException
2121
* @throws PcovNotAvailableException
22-
* @throws PhpdbgNotAvailableException
2322
* @throws XdebugNotAvailableException
2423
* @throws XdebugNotEnabledException
2524
*/
2625
public function forLineCoverage(Filter $filter): Driver
2726
{
2827
$runtime = new Runtime;
2928

30-
if ($runtime->hasPHPDBGCodeCoverage()) {
31-
return new PhpdbgDriver;
32-
}
33-
3429
if ($runtime->hasPCOV()) {
3530
return new PcovDriver($filter);
3631
}

src/Exception/PhpdbgNotAvailableException.php

-21
This file was deleted.

src/Report/Xml/BuildInformation.php

-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
namespace SebastianBergmann\CodeCoverage\Report\Xml;
1111

12-
use function constant;
1312
use function phpversion;
1413
use DateTimeImmutable;
1514
use DOMElement;
@@ -37,11 +36,6 @@ public function setRuntimeInformation(Runtime $runtime): void
3736

3837
$driverNode = $this->nodeByName('driver');
3938

40-
if ($runtime->hasPHPDBGCodeCoverage()) {
41-
$driverNode->setAttribute('name', 'phpdbg');
42-
$driverNode->setAttribute('version', constant('PHPDBG_VERSION'));
43-
}
44-
4539
if ($runtime->hasXdebug()) {
4640
$driverNode->setAttribute('name', 'xdebug');
4741
$driverNode->setAttribute('version', phpversion('xdebug'));

tests/tests/Driver/PhpdbgDriverTest.php

-87
This file was deleted.

0 commit comments

Comments
 (0)