File: 0010-Group-nophpunit11-for-tests-failing-with-PHPUnit-11.patch

package info (click to toggle)
php-phpseclib 2.0.50-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,756 kB
  • sloc: php: 12,020; sh: 66; xml: 49; makefile: 23
file content (96 lines) | stat: -rw-r--r-- 3,154 bytes parent folder | download | duplicates (3)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 5 Jan 2025 09:45:55 +0100
Subject: Group nophpunit11 for tests failing with PHPUnit 11

---
 tests/Unit/Crypt/RC2Test.php       | 2 +-
 tests/Unit/Crypt/TripleDESTest.php | 2 +-
 tests/Unit/Net/SSH2UnitTest.php    | 8 +++++++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/tests/Unit/Crypt/RC2Test.php b/tests/Unit/Crypt/RC2Test.php
index 23adb2a..ded7a00 100644
--- a/tests/Unit/Crypt/RC2Test.php
+++ b/tests/Unit/Crypt/RC2Test.php
@@ -106,7 +106,7 @@ class Unit_Crypt_RC2Test extends PhpseclibTestCase
     }
 
     /**
-     * @dataProvider engineVectors
+     * @group nophpunit11
      */
     public function testVectors($engine, $engineName, $key, $keyLen, $plaintext, $ciphertext)
     {
diff --git a/tests/Unit/Crypt/TripleDESTest.php b/tests/Unit/Crypt/TripleDESTest.php
index 781191d..7ebe58a 100644
--- a/tests/Unit/Crypt/TripleDESTest.php
+++ b/tests/Unit/Crypt/TripleDESTest.php
@@ -100,7 +100,7 @@ class Unit_Crypt_TripleDESTest extends PhpseclibTestCase
     }
 
     /**
-     * @dataProvider engineVectors
+     * @group nophpunit11
      */
     public function testVectors($engine, $engineName, $key, $plaintext, $expected)
     {
diff --git a/tests/Unit/Net/SSH2UnitTest.php b/tests/Unit/Net/SSH2UnitTest.php
index 7a08612..a85a9f5 100644
--- a/tests/Unit/Net/SSH2UnitTest.php
+++ b/tests/Unit/Net/SSH2UnitTest.php
@@ -28,7 +28,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
     }
 
     /**
-     * @dataProvider formatLogDataProvider
+     * @group nophpunit11
      */
     public function testFormatLog(array $message_log, array $message_number_log, $expected)
     {
@@ -38,6 +38,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         $this->assertEquals($expected, $result);
     }
 
+    /** @group nophpunit11 */
     public function testGenerateIdentifier()
     {
         $identifier = $this->createSSHMock()->_generate_identifier();
@@ -70,6 +71,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         }
     }
 
+    /** @group nophpunit11 */
     public function testGetExitStatusIfNotConnected()
     {
         $ssh = $this->createSSHMock();
@@ -77,12 +79,14 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         $this->assertFalse($ssh->getExitStatus());
     }
 
+    /** @group nophpunit11 */
     public function testPTYIDefaultValue()
     {
         $ssh = $this->createSSHMock();
         $this->assertFalse($ssh->isPTYEnabled());
     }
 
+    /** @group nophpunit11 */
     public function testEnablePTY()
     {
         $ssh = $this->createSSHMock();
@@ -94,6 +98,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         $this->assertFalse($ssh->isPTYEnabled());
     }
 
+    /** @group nophpunit11 */
     public function testQuietModeDefaultValue()
     {
         $ssh = $this->createSSHMock();
@@ -101,6 +106,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         $this->assertFalse($ssh->isQuietModeEnabled());
     }
 
+    /** @group nophpunit11 */
     public function testEnableQuietMode()
     {
         $ssh = $this->createSSHMock();