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