Skip to content

Commit 9a97ea8

Browse files
committed
minor symfony#28348 Fix usage of setUp in tests (3.4) (fabpot)
This PR was merged into the 3.4 branch. Discussion ---------- Fix usage of setUp in tests (3.4) | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | License | MIT <!-- Write a short README entry for your feature/bugfix here (replace this comment block.) This will help people understand your PR and can be used as a start of the Doc PR. Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> Commits ------- 2987828 fixed usage of setUp in tests
2 parents fcc31cb + 2987828 commit 9a97ea8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Component/Lock/Tests/Store/CombinedStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getStore()
5858
/** @var CombinedStore */
5959
private $store;
6060

61-
public function setup()
61+
protected function setUp()
6262
{
6363
$this->strategy = $this->getMockBuilder(StrategyInterface::class)->getMock();
6464
$this->store1 = $this->getMockBuilder(StoreInterface::class)->getMock();

src/Symfony/Component/Lock/Tests/Strategy/ConsensusStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ConsensusStrategyTest extends TestCase
2222
/** @var ConsensusStrategy */
2323
private $strategy;
2424

25-
public function setup()
25+
protected function setUp()
2626
{
2727
$this->strategy = new ConsensusStrategy();
2828
}

src/Symfony/Component/Lock/Tests/Strategy/UnanimousStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class UnanimousStrategyTest extends TestCase
2222
/** @var UnanimousStrategy */
2323
private $strategy;
2424

25-
public function setup()
25+
protected function setUp()
2626
{
2727
$this->strategy = new UnanimousStrategy();
2828
}

0 commit comments

Comments
 (0)