mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +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
|
class AddressDetailsTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
// How the fixture got created
|
// How the fixture got created
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ require_once(CONST_BasePath.'/lib/DebugHtml.php');
|
|||||||
class DebugTest extends \PHPUnit\Framework\TestCase
|
class DebugTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->oWithDebuginfo = $this->getMockBuilder(\GeococdeMock::class)
|
$this->oWithDebuginfo = $this->getMockBuilder(\GeococdeMock::class)
|
||||||
->setMethods(array('debugInfo'))
|
->setMethods(array('debugInfo'))
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class SearchContextTest extends \PHPUnit\Framework\TestCase
|
|||||||
private $oCtx;
|
private $oCtx;
|
||||||
|
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->oCtx = new SearchContext();
|
$this->oCtx = new SearchContext();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ require_once(CONST_BasePath.'/lib/TokenList.php');
|
|||||||
|
|
||||||
class TokenTest extends \PHPUnit\Framework\TestCase
|
class TokenTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->oNormalizer = $this->getMockBuilder(\MockNormalizer::class)
|
$this->oNormalizer = $this->getMockBuilder(\MockNormalizer::class)
|
||||||
->setMethods(array('transliterate'))
|
->setMethods(array('transliterate'))
|
||||||
|
|||||||
Reference in New Issue
Block a user