mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-07 10:34:08 +00:00
php unit: replace deprecated regex assert
The regEx assertion has been renamed in PHPUnit 9.5 and causes deprecation warnings.
This commit is contained in:
@@ -26,6 +26,6 @@ class DatabaseErrorTest extends \PHPUnit\Framework\TestCase
|
|||||||
public function testSqlObjectDump()
|
public function testSqlObjectDump()
|
||||||
{
|
{
|
||||||
$oErr = new DatabaseError('Sql error', 123, null, array('one' => 'two'));
|
$oErr = new DatabaseError('Sql error', 123, null, array('one' => 'two'));
|
||||||
$this->assertRegExp('/two/', $oErr->getSqlDebugDump());
|
$this->assertStringContainsString('two', $oErr->getSqlDebugDump());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user