]> git.openstreetmap.org Git - nominatim.git/commitdiff
Declare return type of testcase setUp method
authorSimon Will <gorgor@gorgor.de>
Tue, 5 May 2020 21:40:18 +0000 (23:40 +0200)
committerSimon Will <gorgor@gorgor.de>
Tue, 5 May 2020 21:40:18 +0000 (23:40 +0200)
PHPUnit 7 changed the signature of the TestCase methods to include the
return type.

test/php/Nominatim/AddressDetailsTest.php
test/php/Nominatim/DebugTest.php
test/php/Nominatim/SearchContextTest.php
test/php/Nominatim/TokenListTest.php

index b29d908862346cc1c03f3dd819b410f10b53f66a..e7b3a3f85ab5cd13376e0974fe21348ca2e86e04 100644 (file)
@@ -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
         //
index 7ef1dba336836be7f6f6626a75f36943e6edb472..5d9525acc0beef2e5da54b90541bd90154d08611 100644 (file)
@@ -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'))
index 166e6433d141d259007cbc5b7e17686149d49faf..2b575a16c31a464a0eb4ec385a45097feb41320b 100644 (file)
@@ -9,7 +9,7 @@ class SearchContextTest extends \PHPUnit\Framework\TestCase
     private $oCtx;
 
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->oCtx = new SearchContext();
     }
index d31b219b881ae6a05b4b4a1429ab86d256bd4a75..191a09dceeb6a002a5c6c4103cb0557ad06178a3 100644 (file)
@@ -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'))