File: 0007-Update-regex-assertions.patch

package info (click to toggle)
php-slim 3.12.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,396 kB
  • sloc: php: 11,581; makefile: 18; xml: 10; sh: 3
file content (39 lines) | stat: -rw-r--r-- 1,453 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
From: James Valleroy <jvalleroy@mailbox.org>
Date: Mon, 18 Nov 2024 18:20:33 -0500
Subject: Update regex assertions

---
 tests/AppTest.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/AppTest.php b/tests/AppTest.php
index 1142b2c..8a79cdb 100644
--- a/tests/AppTest.php
+++ b/tests/AppTest.php
@@ -2235,7 +2235,7 @@ class AppTest extends PHPUnit\Framework\TestCase
         $resOut = $app->run(true);
 
         $this->assertEquals(500, $resOut->getStatusCode());
-        $this->assertNotRegExp('/.*middleware exception.*/', (string)$resOut);
+        $this->assertDoesNotMatchRegularExpression('/.*middleware exception.*/', (string)$resOut);
     }
 
     /**
@@ -2274,7 +2274,7 @@ class AppTest extends PHPUnit\Framework\TestCase
         $resOut = $app->run(true);
 
         $this->assertEquals(500, $resOut->getStatusCode());
-        $this->assertNotRegExp('/.*middleware exception.*/', (string)$resOut);
+        $this->assertDoesNotMatchRegularExpression('/.*middleware exception.*/', (string)$resOut);
     }
 
     /**
@@ -2472,7 +2472,7 @@ class AppTest extends PHPUnit\Framework\TestCase
         $resOut = $app->run(true);
 
         $this->assertEquals(500, $resOut->getStatusCode());
-        $this->assertRegExp('/.*middleware exception.*/', (string)$resOut);
+        $this->assertMatchesRegularExpression('/.*middleware exception.*/', (string)$resOut);
     }
 
     public function testFinalize()