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:
Simon Will
2020-05-05 23:40:18 +02:00
parent c2f0d8e5ba
commit 43fd2a7423
4 changed files with 4 additions and 4 deletions

View 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
//

View 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'))

View File

@@ -9,7 +9,7 @@ class SearchContextTest extends \PHPUnit\Framework\TestCase
private $oCtx;
protected function setUp()
protected function setUp(): void
{
$this->oCtx = new SearchContext();
}

View 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'))