File: Compatibility-with-recent-PHPUnit-13.patch

package info (click to toggle)
php-crypt-gpg 1.6.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,376 kB
  • sloc: php: 9,156; xml: 191; makefile: 8
file content (67 lines) | stat: -rw-r--r-- 3,210 bytes parent folder | download
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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sat, 7 Feb 2026 10:56:29 +0100
Subject: Compatibility with recent PHPUnit (13)

Use assertContainsOnlyInstancesOf() instead of assertContainsOnly().
---
 Crypt_GPG-1.6.11/tests/KeyTest.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Crypt_GPG-1.6.11/tests/KeyTest.php b/Crypt_GPG-1.6.11/tests/KeyTest.php
index 9ace480..72855ae 100644
--- a/Crypt_GPG-1.6.11/tests/KeyTest.php
+++ b/Crypt_GPG-1.6.11/tests/KeyTest.php
@@ -115,7 +115,7 @@ class KeyTest extends Crypt_GPG_TestCase
             'Failed to assert number of returned sub-keys is the same as ' .
             'the number of sub-keys added.');
 
-        $this->assertContainsOnly('Crypt_GPG_SubKey', $subKeys, false,
+        $this->assertContainsOnlyInstancesOf('Crypt_GPG_SubKey', $subKeys, false,
             'Failed to assert all returned sub-keys are Crypt_GPG_SubKey ' .
             'objects.');
 
@@ -161,7 +161,7 @@ class KeyTest extends Crypt_GPG_TestCase
             'Failed to assert number of returned user ids is the same as ' .
             'the number of user ids added.');
 
-        $this->assertContainsOnly('Crypt_GPG_UserId', $userIds, false,
+        $this->assertContainsOnlyInstancesOf('Crypt_GPG_UserId', $userIds, false,
             'Failed to assert all returned user ids are Crypt_GPG_UserId ' .
             'objects.');
 
@@ -395,7 +395,7 @@ class KeyTest extends Crypt_GPG_TestCase
             'Failed to assert number of returned sub-keys is the same as ' .
             'the number of sub-keys added.');
 
-        $this->assertContainsOnly('Crypt_GPG_SubKey', $subKeys, false,
+        $this->assertContainsOnlyInstancesOf('Crypt_GPG_SubKey', $subKeys, false,
             'Failed to assert all returned sub-keys are Crypt_GPG_SubKey ' .
             'objects.');
 
@@ -427,7 +427,7 @@ class KeyTest extends Crypt_GPG_TestCase
             'Failed to assert number of returned sub-keys is the same as ' .
             'the number of sub-keys added.');
 
-        $this->assertContainsOnly('Crypt_GPG_SubKey', $subKeys, false,
+        $this->assertContainsOnlyInstancesOf('Crypt_GPG_SubKey', $subKeys, false,
             'Failed to assert all returned sub-keys are Crypt_GPG_SubKey ' .
             'objects.');
 
@@ -473,7 +473,7 @@ class KeyTest extends Crypt_GPG_TestCase
             'Failed to assert number of returned user ids is the same as ' .
             'the number of user ids added.');
 
-        $this->assertContainsOnly('Crypt_GPG_UserId', $userIds, false,
+        $this->assertContainsOnlyInstancesOf('Crypt_GPG_UserId', $userIds, false,
             'Failed to assert all returned user ids are Crypt_GPG_UserId ' .
             'objects.');
 
@@ -499,7 +499,7 @@ class KeyTest extends Crypt_GPG_TestCase
             'Failed to assert number of returned user ids is the same as ' .
             'the number of user ids added.');
 
-        $this->assertContainsOnly('Crypt_GPG_UserId', $userIds, false,
+        $this->assertContainsOnlyInstancesOf('Crypt_GPG_UserId', $userIds, false,
             'Failed to assert all returned user ids are Crypt_GPG_UserId ' .
             'objects.');