minor #17566 Change couple of occurences of a public setUp() method to protected (jakzal)

This PR was merged into the 2.7 branch.

Discussion
----------

Change couple of occurences of a public setUp() method to protected

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

`setUp()` is a protected method. There's no occurrences on the 2.3 branch.

Commits
-------

5fe7359 Change couple of occurences of a public setUp() method to protected
This commit is contained in:
Fabien Potencier 2016-01-27 16:22:58 +01:00
commit 2ef46b311b
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class AppVariableTest extends \PHPUnit_Framework_TestCase
*/
protected $appVariable;
public function setUp()
protected function setUp()
{
$this->appVariable = new AppVariable();
}

View File

@ -21,7 +21,7 @@ class ExtensionCompilerPassTest extends \PHPUnit_Framework_TestCase
private $container;
private $pass;
public function setUp()
protected function setUp()
{
$this->container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
$this->pass = new ExtensionCompilerPass();