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
