fixed usage of setUp in tests

This commit is contained in:
Fabien Potencier 2018-09-04 08:24:48 +02:00
parent 32db92eba7
commit d8ba2cd703

View File

@ -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));