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:
Sarah Hoffmann 2021-12-07 11:34:21 +01:00
parent b7554d9ed8
commit 109cdce92c

View File

@ -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());
}
}