Package: php-horde-logintasks / 2.0.7-8

1010_phpunit-8.x+9.x.patch Patch series | 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Description: Adapt to PHPUnit 8.x and 9.x API.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Index: php-horde-logintasks/Horde_LoginTasks-2.0.7/test/Horde/LoginTasks/LoginTasksTest.php
===================================================================
--- php-horde-logintasks.orig/Horde_LoginTasks-2.0.7/test/Horde/LoginTasks/LoginTasksTest.php
+++ php-horde-logintasks/Horde_LoginTasks-2.0.7/test/Horde/LoginTasks/LoginTasksTest.php
@@ -24,7 +24,7 @@
  * @link     http://pear.horde.org/index.php?package=LoginTasks
  */
 
-class Horde_LoginTasks_LoginTasksTest extends PHPUnit_Framework_TestCase
+class Horde_LoginTasks_LoginTasksTest extends Horde_Test_Case
 {
     public function testTheTasksAreRun()
     {
@@ -317,7 +317,7 @@ class Horde_LoginTasks_LoginTasksTest ex
                 'Horde_LoginTasks_Stub_Notice',
             )
         );
-        $this->assertContains(
+        $this->assertStringContainsString(
             'URL',
             (string) $tasks->runTasks()
         );
@@ -406,7 +406,7 @@ class Horde_LoginTasks_LoginTasksTest ex
             'url' => 'redirect'
         ));
         $tasks->displayTasks();
-        $this->assertContains(
+        $this->assertStringContainsString(
             'URL',
             (string) $tasks->runTasks(array('user_confirmed' => true))
         );
@@ -435,7 +435,7 @@ class Horde_LoginTasks_LoginTasksTest ex
                 'Horde_LoginTasks_Stub_NoticeTwo',
             )
         );
-        $this->assertContains(
+        $this->assertStringContainsString(
             'URL',
             (string) $tasks->runTasks(array('url' => 'redirect'))
         );
@@ -457,7 +457,7 @@ class Horde_LoginTasks_LoginTasksTest ex
             ),
             $classes
         );
-        $this->assertContains(
+        $this->assertStringContainsString(
             'URL',
             (string) $tasks->runTasks(array(
                 'confirmed' => array(
@@ -498,7 +498,7 @@ class Horde_LoginTasks_LoginTasksTest ex
             ),
             $classes
         );
-        $this->assertContains(
+        $this->assertStringContainsString(
             'URL',
             (string) $tasks->runTasks(array('user_confirmed' => true))
         );
@@ -523,7 +523,7 @@ class Horde_LoginTasks_LoginTasksTest ex
             ),
             $classes
         );
-        $this->assertContains(
+        $this->assertStringContainsString(
             'URL',
             (string) $tasks->runTasks(array(
                 'confirmed' => array(
@@ -555,7 +555,7 @@ class Horde_LoginTasks_LoginTasksTest ex
             ),
             $classes
         );
-        $this->assertContains(
+        $this->assertStringContainsString(
             'URL',
             (string) $tasks->runTasks(array(
                 'confirmed' => array(
@@ -588,7 +588,7 @@ class Horde_LoginTasks_LoginTasksTest ex
             ),
             $classes
         );
-        $this->assertContains(
+        $this->assertStringContainsString(
             'redirect',
             (string) $tasks->runTasks(array('user_confirmed' => true))
         );