Skip to content

Commit 25ae9d5

Browse files
committed
Restrict visibility of methods overriding TestCase::setUp()
1 parent c8a54b9 commit 25ae9d5

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.php_cs.dist

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ return PhpCsFixer\Config::create()
88
->setRules(
99
[
1010
'@Symfony' => true,
11-
'no_superfluous_phpdoc_tags' => false,
1211
'array_syntax' => ['syntax' => 'short'],
12+
'no_superfluous_phpdoc_tags' => false,
13+
'php_unit_set_up_tear_down_visibility' => true,
1314
]
1415
)
1516
->setFinder($finder);

Tests/Command/MonitorCommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MonitorCommandTest extends WebTestCase
2121
/**
2222
* {@inheritdoc}
2323
*/
24-
public function setUp(): void
24+
protected function setUp(): void
2525
{
2626
self::bootKernel();
2727

Tests/Command/UnlockCommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class UnlockCommandTest extends WebTestCase
2222
/**
2323
* {@inheritdoc}
2424
*/
25-
public function setUp(): void
25+
protected function setUp(): void
2626
{
2727
self::bootKernel();
2828

Tests/Controller/ListControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ListControllerTest extends WebTestCase
2727
/**
2828
* {@inheritdoc}
2929
*/
30-
public function setUp(): void
30+
protected function setUp(): void
3131
{
3232
$this->client = self::createClient();
3333
$this->em = static::$kernel->getContainer()

0 commit comments

Comments
 (0)