Unverified Commit 23542d96 authored by Juliette's avatar Juliette Committed by GitHub
Browse files

Merge pull request #343 from PHPCSStandards/feature/tests-minor-tweaks

Tests: minor cleanup
No related merge requests found
Showing with 1 addition and 17 deletions
+1 -17
......@@ -30,22 +30,6 @@ if (\defined('PHP_CODESNIFFER_VERBOSITY') === false) {
\define('PHP_CODESNIFFER_VERBOSITY', 0);
}
/*
* PHPUnit 9.3 is the first version which supports Xdebug 3, but we're using PHPUnit 9.2
* for code coverage due to PHP_Parser interfering with our tests.
*
* For now, until a fix is pulled to allow us to use PHPUnit 9.3, this will allow
* PHPUnit 9.2 to run with Xdebug 3 for code coverage.
*/
if (\extension_loaded('xdebug') && \version_compare(\phpversion('xdebug'), '3', '>=')) {
if (\defined('XDEBUG_CC_UNUSED') === false) {
\define('XDEBUG_CC_UNUSED', null);
}
if (\defined('XDEBUG_CC_DEAD_CODE') === false) {
\define('XDEBUG_CC_DEAD_CODE', null);
}
}
if (\is_dir(\dirname(__DIR__) . '/vendor') && \file_exists(\dirname(__DIR__) . '/vendor/autoload.php')) {
$vendorDir = \dirname(__DIR__) . '/vendor';
} else {
......
......@@ -30,7 +30,7 @@
"ext-filter": "*",
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"php-parallel-lint/php-console-highlighter": "^1.0",
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.3",
"yoast/phpunit-polyfills": "^1.0.1"
},
"conflict": {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment