mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 14:36:23 +03: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:
parent
b7554d9ed8
commit
109cdce92c
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user