X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a5d35d6e84d5de5f6ae98d09a7863cf50a84f586..e8caf8d78d046008b7a951f6b1ba5d015dafb6bc:/test/php/Nominatim/SearchContextTest.php diff --git a/test/php/Nominatim/SearchContextTest.php b/test/php/Nominatim/SearchContextTest.php index 0a2131b9..1b346297 100644 --- a/test/php/Nominatim/SearchContextTest.php +++ b/test/php/Nominatim/SearchContextTest.php @@ -2,16 +2,14 @@ namespace Nominatim; -@define('CONST_BasePath', '../../'); - -require_once '../../lib/SearchContext.php'; +require_once(CONST_LibDir.'/SearchContext.php'); class SearchContextTest extends \PHPUnit\Framework\TestCase { private $oCtx; - protected function setUp() + protected function setUp(): void { $this->oCtx = new SearchContext(); }