]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/php/Nominatim/DatabaseErrorTest.php
add consistent SPDX copyright headers
[nominatim.git] / test / php / Nominatim / DatabaseErrorTest.php
index da15649347cc73ae293f83b6acbb1037614b4c42..e24049ca62229ba212ee3731c49135a8c3d38f88 100644 (file)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ * This file is part of Nominatim. (https://nominatim.org)
+ *
+ * Copyright (C) 2022 by the Nominatim developer community.
+ * For a full list of authors see the git log.
+ */
 
 namespace Nominatim;
 
@@ -26,6 +34,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());
     }
 }