]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/php/Nominatim/DatabaseErrorTest.php
Merge pull request #2542 from lonvia/update-phpunit
[nominatim.git] / test / php / Nominatim / DatabaseErrorTest.php
index da15649347cc73ae293f83b6acbb1037614b4c42..6e70ac25d7cb5eeef1eaed359de671a147220ce3 100644 (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());
     }
 }