]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/php/Nominatim/SearchContextTest.php
Merge pull request #1804 from lonvia/ranking-improvement-germany
[nominatim.git] / test / php / Nominatim / SearchContextTest.php
index db0b2dee1de20c4338f6cbd9d3ba1f6c42ec254a..2b575a16c31a464a0eb4ec385a45097feb41320b 100644 (file)
@@ -2,16 +2,14 @@
 
 namespace Nominatim;
 
-@define('CONST_BasePath', '../../');
+require_once(CONST_BasePath.'/lib/SearchContext.php');
 
-require_once '../../lib/SearchContext.php';
-
-class SearchContextTest extends \PHPUnit_Framework_TestCase
+class SearchContextTest extends \PHPUnit\Framework\TestCase
 {
     private $oCtx;
 
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->oCtx = new SearchContext();
     }