minor #28349 Fix usage of setUp in tests (4.1) (fabpot)
This PR was merged into the 4.1 branch.
Discussion
----------
Fix usage of setUp in tests (4.1)
| Q | A
| ------------- | ---
| Branch? | 4.1
| 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
-------
d8ba2cd703
fixed usage of setUp in tests
This commit is contained in:
commit
1c3d3db496
@ -26,7 +26,7 @@ class ContainerBagTest extends TestCase
|
|||||||
/** @var ContainerBag */
|
/** @var ContainerBag */
|
||||||
private $containerBag;
|
private $containerBag;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$this->parameterBag = new ParameterBag(array('foo' => 'value'));
|
$this->parameterBag = new ParameterBag(array('foo' => 'value'));
|
||||||
$this->containerBag = new ContainerBag(new Container($this->parameterBag));
|
$this->containerBag = new ContainerBag(new Container($this->parameterBag));
|
||||||
|
Reference in New Issue
Block a user