File: 0005-Adapt-to-recent-version-of-PHPUnit-9.patch

package info (click to toggle)
php-phpseclib 2.0.49-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,744 kB
  • sloc: php: 11,989; sh: 66; xml: 49; makefile: 23
file content (21 lines) | stat: -rw-r--r-- 832 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sat, 12 Dec 2020 15:32:34 -0400
Subject: Adapt to recent version of PHPUnit (9)

---
 tests/Unit/Net/SSH2UnitTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Unit/Net/SSH2UnitTest.php b/tests/Unit/Net/SSH2UnitTest.php
index ffe9709..9fd1cff 100644
--- a/tests/Unit/Net/SSH2UnitTest.php
+++ b/tests/Unit/Net/SSH2UnitTest.php
@@ -44,7 +44,7 @@ class Unit_Net_SSH2UnitTest extends PhpseclibTestCase
         $this->assertStringStartsWith('SSH-2.0-phpseclib_2.0', $identifier);
 
         if (function_exists('\\Sodium\\library_version_major')) {
-            $this->assertContains('libsodium', $identifier);
+            $this->assertStringContainsString('libsodium', $identifier);
         }
 
         if (extension_loaded('openssl')) {