From: Sarah Hoffmann Date: Tue, 7 Dec 2021 10:31:45 +0000 (+0100) Subject: php unit: don't enforce a name on the test database X-Git-Tag: v4.1.0~105^2~3 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/b7554d9ed8357b716d3cf31b532edc2f85f5829d?hp=6106f1a32e450fdadd0da8f8c977bcd6f3062018 php unit: don't enforce a name on the test database Also gets rid of a PHPUnit deprecation warning. --- diff --git a/test/php/Nominatim/DBTest.php b/test/php/Nominatim/DBTest.php index 1a2ecc86..b1ff957b 100644 --- a/test/php/Nominatim/DBTest.php +++ b/test/php/Nominatim/DBTest.php @@ -132,12 +132,6 @@ class DBTest extends \PHPUnit\Framework\TestCase getenv('UNIT_TEST_DSN') : 'pgsql:dbname=nominatim_unit_tests'; - $this->assertRegExp( - '/unit_test/', - $unit_test_dsn, - 'Test database will get destroyed, thus should have a name like unit_test to be safe' - ); - ## Create the database. { $aDSNParsed = \Nominatim\DB::parseDSN($unit_test_dsn);