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 fcfcc8b..9be7448 100644
--- a/tests/Unit/Crypt/RC2Test.php
+++ b/tests/Unit/Crypt/RC2Test.php
@@ -105,7 +105,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 e72836a..a1f23af 100644
--- a/tests/Unit/Crypt/TripleDESTest.php
+++ b/tests/Unit/Crypt/TripleDESTest.php
@@ -99,7 +99,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 b5b362f..3b2fe00 100644
--- a/tests/Unit/Net/SSH2UnitTest.php
+++ b/tests/Unit/Net/SSH2UnitTest.php
@@ -26,7 +26,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
     }
 
     /**
-     * @dataProvider formatLogDataProvider
+     * @group nophpunit11
      */
     public function testFormatLog(array $message_log, array $message_number_log, $expected)
     {
@@ -36,6 +36,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         $this->assertEquals($expected, $result);
     }
 
+    /** @group nophpunit11 */
     public function testGenerateIdentifier()
     {
         $identifier = $this->createSSHMock()->_generate_identifier();
@@ -64,6 +65,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         }
     }
 
+    /** @group nophpunit11 */
     public function testGetExitStatusIfNotConnected()
     {
         $ssh = $this->createSSHMock();
@@ -71,12 +73,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();
@@ -88,6 +92,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         $this->assertFalse($ssh->isPTYEnabled());
     }
 
+    /** @group nophpunit11 */
     public function testQuietModeDefaultValue()
     {
         $ssh = $this->createSSHMock();
@@ -95,6 +100,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         $this->assertFalse($ssh->isQuietModeEnabled());
     }
 
+    /** @group nophpunit11 */
     public function testEnableQuietMode()
     {
         $ssh = $this->createSSHMock();
