From 43fd2a7423eccfd1f3662c2046393dfa3e57fbe0 Mon Sep 17 00:00:00 2001 From: Simon Will Date: Tue, 5 May 2020 23:40:18 +0200 Subject: [PATCH] Declare return type of testcase setUp method PHPUnit 7 changed the signature of the TestCase methods to include the return type. --- test/php/Nominatim/AddressDetailsTest.php | 2 +- test/php/Nominatim/DebugTest.php | 2 +- test/php/Nominatim/SearchContextTest.php | 2 +- test/php/Nominatim/TokenListTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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')) -- 2.39.5