mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
Declare return type of testcase setUp method
PHPUnit 7 changed the signature of the TestCase methods to include the return type.
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
@@ -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'))
|
||||
|
||||
@@ -9,7 +9,7 @@ class SearchContextTest extends \PHPUnit\Framework\TestCase
|
||||
private $oCtx;
|
||||
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->oCtx = new SearchContext();
|
||||
}
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user