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

package info (click to toggle)
php-horde-exception 2.0.8-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 540 kB
  • sloc: xml: 679; php: 282; sh: 3; makefile: 2
file content (45 lines) | stat: -rw-r--r-- 2,074 bytes parent folder | download | duplicates (2)
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
Description: Adapt to PHPUnit 8.x and 9.x API
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

diff --git a/Horde_Exception-2.0.8/test/Horde/Exception/ExceptionTest.php b/Horde_Exception-2.0.8/test/Horde/Exception/ExceptionTest.php
index 502a813..7288058 100644
--- a/Horde_Exception-2.0.8/test/Horde/Exception/ExceptionTest.php
+++ b/Horde_Exception-2.0.8/test/Horde/Exception/ExceptionTest.php
@@ -19,7 +19,7 @@
  * @author   Gunnar Wrobel <wrobel@pardus.de>
  * @license  http://www.horde.org/licenses/lgpl21 LGPL 2.1
  */
-class Horde_Exception_ExceptionTest extends  PHPUnit_Framework_TestCase
+class Horde_Exception_ExceptionTest extends Horde_Test_Case
 {
 
     // Basic Exception Testing
@@ -134,8 +134,8 @@ class Horde_Exception_ExceptionTest extends  PHPUnit_Framework_TestCase
         try {
             Horde_Exception_Pear::catchError(new PEAR_Error('An error occurred.'));
         } catch (Horde_Exception_Pear $e) {
-            $this->assertContains(
-                'Horde_Exception_ExceptionTest->testCatchingAndConvertingPearErrors unkown:unkown',
+            $this->assertStringContainsString(
+                'Horde_Exception_ExceptionTest->testCatchingAndConvertingPearErrors ',
                 $e->details
             );
         }
@@ -149,7 +149,7 @@ class Horde_Exception_ExceptionTest extends  PHPUnit_Framework_TestCase
                 new PEAR_Error('An error occurred.', null, null, null, 'userinfo')
             );
         } catch (Horde_Exception_Pear $e) {
-            $this->assertContains('userinfo', $e->details);
+            $this->assertStringContainsString('userinfo', $e->details);
         }
     }
 
@@ -161,7 +161,7 @@ class Horde_Exception_ExceptionTest extends  PHPUnit_Framework_TestCase
                 new PEAR_Error('An error occurred.', null, null, null, array('userinfo'))
             );
         } catch (Horde_Exception_Pear $e) {
-            $this->assertContains('[0] => userinfo', $e->details);
+            $this->assertStringContainsString('[0] => userinfo', $e->details);
         }
     }