X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/301fd7f7e8d97755849e26427c12eed070f21b5f..109cdce92ca67665c16f21936e8874b5d525349f:/test/php/Nominatim/DatabaseErrorTest.php?ds=sidebyside 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()); } }