Skip to content

Commit b0ab694

Browse files
committed
Add void return type to setUp() test methods
1 parent dc6fe49 commit b0ab694

10 files changed

+10
-10
lines changed

tests/Unit/Enhancer/ContentRepositoryEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ContentRepositoryEnhancerTest extends TestCase
2222
/**
2323
* {@inheritdoc}
2424
*/
25-
public function setUp()
25+
public function setUp(): void
2626
{
2727
$cRepository = $this->createMock(ContentRepositoryInterface::class);
2828
$cRepository

tests/Unit/Enhancer/FieldByClassEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FieldByClassEnhancerTest extends TestCase
2626

2727
private $document;
2828

29-
public function setUp()
29+
public function setUp(): void
3030
{
3131
$this->document = $this->createMock(RouteObject::class);
3232

tests/Unit/Enhancer/FieldMapEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class FieldMapEnhancerTest extends TestCase
2727
*/
2828
private $enhancer;
2929

30-
public function setUp()
30+
public function setUp(): void
3131
{
3232
$this->request = Request::create('/test');
3333
$mapping = ['static_pages' => 'cmf_content.controller:indexAction'];

tests/Unit/Enhancer/FieldPresenceEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class FieldPresenceEnhancerTest extends TestCase
2424

2525
private $request;
2626

27-
public function setUp()
27+
public function setUp(): void
2828
{
2929
$this->mapper = new FieldPresenceEnhancer('_template', '_controller', 'cmf_content.controller:indexAction');
3030

tests/Unit/Enhancer/RouteContentEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class RouteContentEnhancerTest extends TestCase
2828

2929
private $request;
3030

31-
public function setUp()
31+
public function setUp(): void
3232
{
3333
$this->document = $this->createMock(RouteObject::class);
3434

tests/Unit/NestedMatcher/NestedMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NestedMatcherTest extends TestCase
3131

3232
private $finalMatcher;
3333

34-
public function setUp()
34+
public function setUp(): void
3535
{
3636
$this->provider = $this->createMock(RouteProviderInterface::class);
3737
$this->routeFilter1 = $this->createMock(RouteFilterInterface::class);

tests/Unit/NestedMatcher/UrlMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class UrlMatcherTest extends TestCase
5454
*/
5555
private $url = '/foo/bar';
5656

57-
public function setUp()
57+
public function setUp(): void
5858
{
5959
$this->routeDocument = $this->createMock(RouteMock::class);
6060
$this->routeCompiled = $this->createMock(CompiledRoute::class);

tests/Unit/Routing/ChainRouterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ChainRouterTest extends TestCase
4242
*/
4343
private $context;
4444

45-
public function setUp()
45+
public function setUp(): void
4646
{
4747
$this->router = new ChainRouter($this->createMock(LoggerInterface::class));
4848
$this->context = $this->createMock(RequestContext::class);

tests/Unit/Routing/DynamicRouterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class DynamicRouterTest extends TestCase
7070

7171
const URL = '/foo/bar';
7272

73-
public function setUp()
73+
public function setUp(): void
7474
{
7575
$this->routeDocument = $this->createMock(RouteMock::class);
7676

tests/Unit/Routing/PagedRouteCollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class PagedRouteCollectionTest extends TestCase
2929
*/
3030
private $routeProvider;
3131

32-
protected function setUp()
32+
protected function setUp(): void
3333
{
3434
$this->routeProvider = $this->createMock(PagedRouteProviderInterface::class);
3535
}

0 commit comments

Comments
 (0)