File: 1010_phpunit-8.x%2B9.x.patch

package info (click to toggle)
php-horde-crypt 2.7.12-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,676 kB
  • sloc: php: 2,648; xml: 1,190; sh: 3; makefile: 2
file content (65 lines) | stat: -rw-r--r-- 1,976 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
Description: _phpunit 8.x+9.x
--- a/Horde_Crypt-2.7.12/test/Horde/Crypt/Pgp/TestBase.php
+++ b/Horde_Crypt-2.7.12/test/Horde/Crypt/Pgp/TestBase.php
@@ -18,13 +18,13 @@
     /* Returns the list of backends to test. */
     abstract protected function _setUp();
 
-    protected function setUp()
+    protected function setUp(): void
     {
         @date_default_timezone_set('GMT');
         $this->_language = getenv('LANGUAGE');
     }
 
-    protected function tearDown()
+    protected function tearDown(): void
     {
         putenv('LANGUAGE=' . $this->_language);
     }
--- a/Horde_Crypt-2.7.12/test/Horde/Crypt/PgpKeyserverTest.php
+++ b/Horde_Crypt-2.7.12/test/Horde/Crypt/PgpKeyserverTest.php
@@ -14,7 +14,7 @@
     protected $_ks;
     protected $_gnupg;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $c = self::getConfig('CRYPT_TEST_CONFIG', __DIR__);
         $this->_gnupg = isset($c['gnupg'])
@@ -37,6 +37,8 @@
 
     public function testKeyserverRetrieve()
     {
+        $this->expectNotToPerformAssertions();
+
         try {
             $this->_ks->get('4DE5B969');
         } catch (Horde_Crypt_Exception $e) {
--- a/Horde_Crypt-2.7.12/test/Horde/Crypt/PgpParseTest.php
+++ b/Horde_Crypt-2.7.12/test/Horde/Crypt/PgpParseTest.php
@@ -12,7 +12,7 @@
 {
     protected $_pgp;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->_pgp = new Horde_Crypt_Pgp();
     }
--- a/Horde_Crypt-2.7.12/test/Horde/Crypt/SmimeTest.php
+++ b/Horde_Crypt-2.7.12/test/Horde/Crypt/SmimeTest.php
@@ -12,7 +12,7 @@
 
 class Horde_Crypt_SmimeTest extends Horde_Test_Case
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         if (!extension_loaded('openssl')) {
             $this->markTestSkipped('No openssl support in PHP.');
--- /dev/null
+++ b/Horde_Crypt-2.7.12/test/Horde/Crypt/phpunit.xml
@@ -0,0 +1 @@
+<phpunit bootstrap="bootstrap.php"></phpunit>