Skip to content

Commit

Permalink
Remove support for PHPDBG
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 11, 2022
1 parent 38cb780 commit c304be7
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 220 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt

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

## [9.2.18] - 2022-MM-DD
Expand Down
101 changes: 0 additions & 101 deletions src/Driver/PhpdbgDriver.php

This file was deleted.

5 changes: 0 additions & 5 deletions src/Driver/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@ final class Selector
/**
* @throws NoCodeCoverageDriverAvailableException
* @throws PcovNotAvailableException
* @throws PhpdbgNotAvailableException
* @throws XdebugNotAvailableException
* @throws XdebugNotEnabledException
*/
public function forLineCoverage(Filter $filter): Driver
{
$runtime = new Runtime;

if ($runtime->hasPHPDBGCodeCoverage()) {
return new PhpdbgDriver;
}

if ($runtime->hasPCOV()) {
return new PcovDriver($filter);
}
Expand Down
21 changes: 0 additions & 21 deletions src/Exception/PhpdbgNotAvailableException.php

This file was deleted.

6 changes: 0 additions & 6 deletions src/Report/Xml/BuildInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
namespace SebastianBergmann\CodeCoverage\Report\Xml;

use function constant;
use function phpversion;
use DateTimeImmutable;
use DOMElement;
Expand Down Expand Up @@ -37,11 +36,6 @@ public function setRuntimeInformation(Runtime $runtime): void

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

if ($runtime->hasPHPDBGCodeCoverage()) {
$driverNode->setAttribute('name', 'phpdbg');
$driverNode->setAttribute('version', constant('PHPDBG_VERSION'));
}

if ($runtime->hasXdebug()) {
$driverNode->setAttribute('name', 'xdebug');
$driverNode->setAttribute('version', phpversion('xdebug'));
Expand Down
87 changes: 0 additions & 87 deletions tests/tests/Driver/PhpdbgDriverTest.php

This file was deleted.

0 comments on commit c304be7

Please sign in to comment.