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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
From: William Desportes <williamdes@wdes.fr>
Date: Mon, 14 Apr 2025 10:40:18 +0200
Subject: Add missing requires php extension to tests
Origin: vendor
Forwarded: no
---
tests/Phing/Test/Regression/ExcludeZipTest.php | 1 +
tests/Phing/Test/Task/Ext/Archive/ZipUnzipTaskTest.php | 1 +
tests/Phing/Test/Task/Ext/DbDeploy/DbDeployTaskTest.php | 1 +
tests/Phing/Test/Task/Optional/ComposerTaskTest.php | 1 +
tests/Phing/Test/Task/System/Condition/PDOSQLExecTaskConditionTest.php | 1 +
5 files changed, 5 insertions(+)
diff --git a/tests/Phing/Test/Regression/ExcludeZipTest.php b/tests/Phing/Test/Regression/ExcludeZipTest.php
index fb5f171..a0dfc6f 100644
--- a/tests/Phing/Test/Regression/ExcludeZipTest.php
+++ b/tests/Phing/Test/Regression/ExcludeZipTest.php
@@ -28,6 +28,7 @@ use Phing\Test\Support\BuildFileTest;
*
* @internal
*/
+#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('zip')]
class ExcludeZipTest extends BuildFileTest
{
public function setUp(): void
diff --git a/tests/Phing/Test/Task/Ext/Archive/ZipUnzipTaskTest.php b/tests/Phing/Test/Task/Ext/Archive/ZipUnzipTaskTest.php
index 7273ea5..5a6173b 100644
--- a/tests/Phing/Test/Task/Ext/Archive/ZipUnzipTaskTest.php
+++ b/tests/Phing/Test/Task/Ext/Archive/ZipUnzipTaskTest.php
@@ -30,6 +30,7 @@ use ZipArchive;
*
* @internal
*/
+#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('zip')]
class ZipUnzipTaskTest extends BuildFileTest
{
public function setUp(): void
diff --git a/tests/Phing/Test/Task/Ext/DbDeploy/DbDeployTaskTest.php b/tests/Phing/Test/Task/Ext/DbDeploy/DbDeployTaskTest.php
index b22c6f1..8d470af 100644
--- a/tests/Phing/Test/Task/Ext/DbDeploy/DbDeployTaskTest.php
+++ b/tests/Phing/Test/Task/Ext/DbDeploy/DbDeployTaskTest.php
@@ -27,6 +27,7 @@ use Phing\Test\Support\BuildFileTest;
*
* @internal
*/
+#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('pdo_sqlite')]
class DbDeployTaskTest extends BuildFileTest
{
public function setUp(): void
diff --git a/tests/Phing/Test/Task/Optional/ComposerTaskTest.php b/tests/Phing/Test/Task/Optional/ComposerTaskTest.php
index 3cf1345..2002a40 100644
--- a/tests/Phing/Test/Task/Optional/ComposerTaskTest.php
+++ b/tests/Phing/Test/Task/Optional/ComposerTaskTest.php
@@ -123,6 +123,7 @@ class ComposerTaskTest extends TestCase
/**
* @covers \ComposerTask::getComposer
*/
+ #[\PHPUnit\Framework\Attributes\RequiresPhpExtension('pdo_mysql')]
public function testGetComposerFromPath(): void
{
$composer = 'foo';
diff --git a/tests/Phing/Test/Task/System/Condition/PDOSQLExecTaskConditionTest.php b/tests/Phing/Test/Task/System/Condition/PDOSQLExecTaskConditionTest.php
index 6d00a65..97bc2ff 100644
--- a/tests/Phing/Test/Task/System/Condition/PDOSQLExecTaskConditionTest.php
+++ b/tests/Phing/Test/Task/System/Condition/PDOSQLExecTaskConditionTest.php
@@ -12,6 +12,7 @@ use Phing\Test\Support\BuildFileTest;
*
* @internal
*/
+#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('pdo_mysql')]
class PDOSQLExecTaskConditionTest extends BuildFileTest
{
public function setUp(): void
|