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

package info (click to toggle)
php-horde-stream-filter 2.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 184 kB
  • sloc: xml: 317; php: 273; sh: 3; makefile: 2
file content (59 lines) | stat: -rw-r--r-- 1,901 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
Description: Adapt to PHPUnit 8.x and 9.x API.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

--- a/Horde_Stream_Filter-2.0.5/test/Horde/Stream/Filter/Bin2hexTest.php
+++ b/Horde_Stream_Filter-2.0.5/test/Horde/Stream/Filter/Bin2hexTest.php
@@ -15,7 +15,7 @@
     public $fp;
     public $testdata;
 
-    public function setup()
+    protected function setup(): void
     {
         stream_filter_register('horde_bin2hex', 'Horde_Stream_Filter_Bin2hex');
 
--- a/Horde_Stream_Filter-2.0.5/test/Horde/Stream/Filter/Crc32Test.php
+++ b/Horde_Stream_Filter-2.0.5/test/Horde/Stream/Filter/Crc32Test.php
@@ -15,7 +15,7 @@
     public $fp;
     public $testdata;
 
-    public function setup()
+    protected function setup(): void
     {
         stream_filter_register('horde_crc32', 'Horde_Stream_Filter_Crc32');
 
--- a/Horde_Stream_Filter-2.0.5/test/Horde/Stream/Filter/EolTest.php
+++ b/Horde_Stream_Filter-2.0.5/test/Horde/Stream/Filter/EolTest.php
@@ -14,14 +14,14 @@
 {
     public $fp;
 
-    public function setup()
+    protected function setup(): void
     {
         stream_filter_register('horde_eol', 'Horde_Stream_Filter_Eol');
         $this->fp = fopen('php://temp', 'r+');
         fwrite($this->fp, "A\r\nB\rC\nD\r\n\r\nE\r\rF\n\nG\r\n\n\r\nH\r\n\r\r\nI");
     }
 
-    public function tearDown()
+    protected function tearDown(): void
     {
         fclose($this->fp);
     }
--- a/Horde_Stream_Filter-2.0.5/test/Horde/Stream/Filter/NullTest.php
+++ b/Horde_Stream_Filter-2.0.5/test/Horde/Stream/Filter/NullTest.php
@@ -15,7 +15,7 @@
     public $fp;
     public $testdata;
 
-    public function setup()
+    protected function setup(): void
     {
         stream_filter_register('horde_null', 'Horde_Stream_Filter_Null');
 
--- /dev/null
+++ b/Horde_Stream_Filter-2.0.5/test/Horde/Stream/Filter/phpunit.xml
@@ -0,0 +1 @@
+<phpunit bootstrap="bootstrap.php"></phpunit>