From: Simon Will Date: Tue, 5 May 2020 21:40:18 +0000 (+0200) Subject: Declare return type of testcase setUp method X-Git-Tag: v3.5.0~21^2~4 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/43fd2a7423eccfd1f3662c2046393dfa3e57fbe0?hp=c2f0d8e5ba4d2903492fe7ef728c398a4475a14d Declare return type of testcase setUp method PHPUnit 7 changed the signature of the TestCase methods to include the return type. --- diff --git a/test/php/Nominatim/AddressDetailsTest.php b/test/php/Nominatim/AddressDetailsTest.php index b29d9088..e7b3a3f8 100644 --- a/test/php/Nominatim/AddressDetailsTest.php +++ b/test/php/Nominatim/AddressDetailsTest.php @@ -9,7 +9,7 @@ require_once(CONST_BasePath.'/lib/AddressDetails.php'); class AddressDetailsTest extends \PHPUnit\Framework\TestCase { - protected function setUp() + protected function setUp(): void { // How the fixture got created // diff --git a/test/php/Nominatim/DebugTest.php b/test/php/Nominatim/DebugTest.php index 7ef1dba3..5d9525ac 100644 --- a/test/php/Nominatim/DebugTest.php +++ b/test/php/Nominatim/DebugTest.php @@ -7,7 +7,7 @@ require_once(CONST_BasePath.'/lib/DebugHtml.php'); class DebugTest extends \PHPUnit\Framework\TestCase { - protected function setUp() + protected function setUp(): void { $this->oWithDebuginfo = $this->getMockBuilder(\GeococdeMock::class) ->setMethods(array('debugInfo')) diff --git a/test/php/Nominatim/SearchContextTest.php b/test/php/Nominatim/SearchContextTest.php index 166e6433..2b575a16 100644 --- a/test/php/Nominatim/SearchContextTest.php +++ b/test/php/Nominatim/SearchContextTest.php @@ -9,7 +9,7 @@ class SearchContextTest extends \PHPUnit\Framework\TestCase private $oCtx; - protected function setUp() + protected function setUp(): void { $this->oCtx = new SearchContext(); } diff --git a/test/php/Nominatim/TokenListTest.php b/test/php/Nominatim/TokenListTest.php index d31b219b..191a09dc 100644 --- a/test/php/Nominatim/TokenListTest.php +++ b/test/php/Nominatim/TokenListTest.php @@ -7,7 +7,7 @@ require_once(CONST_BasePath.'/lib/TokenList.php'); class TokenTest extends \PHPUnit\Framework\TestCase { - protected function setUp() + protected function setUp(): void { $this->oNormalizer = $this->getMockBuilder(\MockNormalizer::class) ->setMethods(array('transliterate'))