X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6f383d6073b68409e8da243356eccf5e2847f264..764dcd7f6459c08aafd5cf2fcb7902cc2868cb30:/test/php/Nominatim/SearchContextTest.php?ds=inline diff --git a/test/php/Nominatim/SearchContextTest.php b/test/php/Nominatim/SearchContextTest.php index db0b2dee..2b575a16 100644 --- a/test/php/Nominatim/SearchContextTest.php +++ b/test/php/Nominatim/SearchContextTest.php @@ -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(); }