From 109cdce92ca67665c16f21936e8874b5d525349f Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 7 Dec 2021 11:34:21 +0100 Subject: [PATCH] php unit: replace deprecated regex assert The regEx assertion has been renamed in PHPUnit 9.5 and causes deprecation warnings. --- test/php/Nominatim/DatabaseErrorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/php/Nominatim/DatabaseErrorTest.php b/test/php/Nominatim/DatabaseErrorTest.php index da156493..6e70ac25 100644 --- a/test/php/Nominatim/DatabaseErrorTest.php +++ b/test/php/Nominatim/DatabaseErrorTest.php @@ -26,6 +26,6 @@ class DatabaseErrorTest extends \PHPUnit\Framework\TestCase public function testSqlObjectDump() { $oErr = new DatabaseError('Sql error', 123, null, array('one' => 'two')); - $this->assertRegExp('/two/', $oErr->getSqlDebugDump()); + $this->assertStringContainsString('two', $oErr->getSqlDebugDump()); } } -- 2.39.5