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();
