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()
|