File: Add-missing-requires-php-extension-to-tests.patch

package info (click to toggle)
phing 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,548 kB
  • sloc: php: 59,817; xml: 9,767; sql: 78; makefile: 39; sh: 14
file content (61 lines) | stat: -rw-r--r-- 2,670 bytes parent folder | download
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
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/System/Condition/PDOSQLExecTaskConditionTest.php | 1 +
 4 files changed, 4 insertions(+)

diff --git a/tests/Phing/Test/Regression/ExcludeZipTest.php b/tests/Phing/Test/Regression/ExcludeZipTest.php
index db79bee..36b6abb 100644
--- a/tests/Phing/Test/Regression/ExcludeZipTest.php
+++ b/tests/Phing/Test/Regression/ExcludeZipTest.php
@@ -29,6 +29,7 @@ use Phing\Test\Support\BuildFileTest;
  * @requires extension zip
  * @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 4917017..59f7394 100644
--- a/tests/Phing/Test/Task/Ext/Archive/ZipUnzipTaskTest.php
+++ b/tests/Phing/Test/Task/Ext/Archive/ZipUnzipTaskTest.php
@@ -31,6 +31,7 @@ use ZipArchive;
  * @requires extension zip
  * @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 5b6f0e9..21f62d7 100644
--- a/tests/Phing/Test/Task/Ext/DbDeploy/DbDeployTaskTest.php
+++ b/tests/Phing/Test/Task/Ext/DbDeploy/DbDeployTaskTest.php
@@ -28,6 +28,7 @@ use Phing\Test\Support\BuildFileTest;
  * @requires extension pdo_sqlite
  * @internal
  */
+#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('pdo_sqlite')]
 class DbDeployTaskTest extends BuildFileTest
 {
     public function setUp(): void
diff --git a/tests/Phing/Test/Task/System/Condition/PDOSQLExecTaskConditionTest.php b/tests/Phing/Test/Task/System/Condition/PDOSQLExecTaskConditionTest.php
index 85ed401..81cb810 100644
--- a/tests/Phing/Test/Task/System/Condition/PDOSQLExecTaskConditionTest.php
+++ b/tests/Phing/Test/Task/System/Condition/PDOSQLExecTaskConditionTest.php
@@ -13,6 +13,7 @@ use Phing\Test\Support\BuildFileTest;
  * @requires extension pdo_mysql
  * @internal
  */
+#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('pdo_mysql')]
 class PDOSQLExecTaskConditionTest extends BuildFileTest
 {
     public function setUp(): void