1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
From: William Desportes <williamdes@wdes.fr>
Date: Sun, 13 Apr 2025 15:00:48 +0200
Subject: Disable PHPUnit Tasks
Origin: vendor
Forwarded: not-needed
---
src/Phing/Task/Ext/PhpUnit/PHPUnitTask.php | 4 ++++
tests/Phing/Test/Task/Ext/PhpUnit/PHPUnitTaskTest.php | 1 +
tests/Phing/Test/Task/Optional/CoverageMergeTest.php | 1 +
3 files changed, 6 insertions(+)
diff --git a/src/Phing/Task/Ext/PhpUnit/PHPUnitTask.php b/src/Phing/Task/Ext/PhpUnit/PHPUnitTask.php
index 00edaee..0abea71 100644
--- a/src/Phing/Task/Ext/PhpUnit/PHPUnitTask.php
+++ b/src/Phing/Task/Ext/PhpUnit/PHPUnitTask.php
@@ -93,6 +93,10 @@ class PHPUnitTask extends Task
*/
public function init()
{
+ throw new BuildException(
+ 'The PHPUnit tasks do not work for versions above PHPUnit 9.',
+ $this->getLocation()
+ );
}
private function loadPHPUnit()
diff --git a/tests/Phing/Test/Task/Ext/PhpUnit/PHPUnitTaskTest.php b/tests/Phing/Test/Task/Ext/PhpUnit/PHPUnitTaskTest.php
index eadb9fa..38cdb8f 100644
--- a/tests/Phing/Test/Task/Ext/PhpUnit/PHPUnitTaskTest.php
+++ b/tests/Phing/Test/Task/Ext/PhpUnit/PHPUnitTaskTest.php
@@ -33,6 +33,7 @@ class PHPUnitTaskTest extends BuildFileTest
public function setUp(): void
{
+ $this->markTestSkipped('The PHPUnit tests do not work for versions above PHPUnit 9.');
$this->configureProject(PHING_TEST_BASE . '/etc/tasks/ext/phpunit/build.xml');
}
diff --git a/tests/Phing/Test/Task/Optional/CoverageMergeTest.php b/tests/Phing/Test/Task/Optional/CoverageMergeTest.php
index 4805e91..dcda7f0 100644
--- a/tests/Phing/Test/Task/Optional/CoverageMergeTest.php
+++ b/tests/Phing/Test/Task/Optional/CoverageMergeTest.php
@@ -32,6 +32,7 @@ class CoverageMergeTest extends BuildFileTest
{
public function setUp(): void
{
+ $this->markTestSkipped('The PHPUnit tests do not work for versions above PHPUnit 9.');
if (!file_exists(PHING_TEST_BASE . '/etc/tasks/ext/coverage/workspace')) {
mkdir(PHING_TEST_BASE . '/etc/tasks/ext/coverage/workspace');
}
|