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

package info (click to toggle)
php-horde-wicked 2.0.8-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 7,248 kB
  • sloc: php: 19,962; xml: 3,784; javascript: 41; makefile: 21; sh: 3
file content (29 lines) | stat: -rw-r--r-- 1,280 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
Description: Adapt to PHPUnit 8.x and 9.x API.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Index: php-horde-wicked-2.0.8/wicked-2.0.8/test/Wicked/TestCase.php
===================================================================
--- php-horde-wicked-2.0.8.orig/wicked-2.0.8/test/Wicked/TestCase.php
+++ php-horde-wicked-2.0.8/wicked-2.0.8/test/Wicked/TestCase.php
@@ -30,7 +30,7 @@
  */
 class Wicked_TestCase extends Horde_Test_Case
 {
-    public function setUp()
+    public function setUp(): void
     {
         $text_wiki = __DIR__ . '/../../lib/Text_Wiki';
         set_include_path($text_wiki . PATH_SEPARATOR . get_include_path());
Index: php-horde-wicked-2.0.8/wicked-2.0.8/test/Wicked/Unit/Driver/SqlTest.php
===================================================================
--- php-horde-wicked-2.0.8.orig/wicked-2.0.8/test/Wicked/Unit/Driver/SqlTest.php
+++ php-horde-wicked-2.0.8/wicked-2.0.8/test/Wicked/Unit/Driver/SqlTest.php
@@ -36,7 +36,7 @@ class Wicked_Unit_Driver_SqlTest extends
      */
     public $wicked;
 
-    public function setUp()
+    public function setUp(): void
     {
         $this->markTestIncomplete('This is a very old test case that certainly does not work in its current form. But it may still be useful to be rescued.');