Skip to content

Commit

Permalink
Restrict visibility of methods overriding TestCase::setUp()
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Apr 11, 2021
1 parent c8a54b9 commit 25ae9d5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ return PhpCsFixer\Config::create()
->setRules(
[
'@Symfony' => true,
'no_superfluous_phpdoc_tags' => false,
'array_syntax' => ['syntax' => 'short'],
'no_superfluous_phpdoc_tags' => false,
'php_unit_set_up_tear_down_visibility' => true,
]
)
->setFinder($finder);
2 changes: 1 addition & 1 deletion Tests/Command/MonitorCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MonitorCommandTest extends WebTestCase
/**
* {@inheritdoc}
*/
public function setUp(): void
protected function setUp(): void
{
self::bootKernel();

Expand Down
2 changes: 1 addition & 1 deletion Tests/Command/UnlockCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class UnlockCommandTest extends WebTestCase
/**
* {@inheritdoc}
*/
public function setUp(): void
protected function setUp(): void
{
self::bootKernel();

Expand Down
2 changes: 1 addition & 1 deletion Tests/Controller/ListControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ListControllerTest extends WebTestCase
/**
* {@inheritdoc}
*/
public function setUp(): void
protected function setUp(): void
{
$this->client = self::createClient();
$this->em = static::$kernel->getContainer()
Expand Down

0 comments on commit 25ae9d5

Please sign in to comment.