File: 0003-Adapt-to-recent-version-of-PHPUnit-9.patch

package info (click to toggle)
php-text-captcha 1.0.2-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 616 kB
  • sloc: php: 1,035; xml: 440; makefile: 8
file content (34 lines) | stat: -rw-r--r-- 1,718 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 13 Dec 2020 15:08:36 -0400
Subject: Adapt to recent version of PHPUnit (9)

---
 Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Figlet_Test.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Figlet_Test.php b/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Figlet_Test.php
index c60c6e2..b705e59 100644
--- a/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Figlet_Test.php
+++ b/Text_CAPTCHA-1.0.2/tests/Text_CAPTCHA_Driver_Figlet_Test.php
@@ -204,7 +204,7 @@ class Text_CAPTCHA_Driver_Figlet_Test extends PHPUnit\Framework\TestCase
         $this->_captcha->init($options);
         $captcha = $this->_captcha->getCAPTCHA();
         $this->assertNotNull($captcha);
-        $this->assertContains('width:123px;', $captcha);
+        $this->assertStringContainsString('width:123px;', $captcha);
         $this->assertNotNull($this->_captcha->getPhrase());
     }
 
@@ -227,9 +227,9 @@ class Text_CAPTCHA_Driver_Figlet_Test extends PHPUnit\Framework\TestCase
         $this->_captcha->init($options);
         $captcha = $this->_captcha->getCAPTCHA();
         $this->assertNotNull($captcha);
-        $this->assertContains('border: 1px dashed red;', $captcha);
-        $this->assertContains('color: yellow;', $captcha);
-        $this->assertContains('background: black;', $captcha);
+        $this->assertStringContainsString('border: 1px dashed red;', $captcha);
+        $this->assertStringContainsString('color: yellow;', $captcha);
+        $this->assertStringContainsString('background: black;', $captcha);
         $this->assertNotNull($this->_captcha->getPhrase());
     }
 }