minor #13903 [2.7] Changed visibility of setUp() and tearDown to protected (saro0h)

This PR was merged into the 2.7 branch.

Discussion
----------

[2.7] Changed visibility of setUp() and tearDown to protected

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

Commits
-------

a818ab2 Changed visibility of setUp() and tearDown to protected
This commit is contained in:
Nicolas Grekas 2015-03-13 11:02:01 +01:00
commit de658e75e8
8 changed files with 9 additions and 9 deletions

View File

@ -17,7 +17,7 @@ use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FragmentRenderer
class LegacyFragmentRendererPassTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
}

View File

@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\Reference;
class LegacyTemplatingAssetHelperPassTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
}

View File

@ -20,7 +20,7 @@ use Symfony\Component\Routing\RequestContext;
*/
class LegacyAssetsExtensionTest extends TestCase
{
public function setUp()
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
}

View File

@ -15,7 +15,7 @@ use Symfony\Component\DependencyInjection\Definition;
class LegacyDefinitionTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
}

View File

@ -92,7 +92,7 @@ class SimplePreAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
$listener->handle($this->event);
}
public function setUp()
protected function setUp()
{
$this->authenticationManager = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager')
->disableOriginalConstructor()
@ -115,7 +115,7 @@ class SimplePreAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
$this->token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface');
}
public function tearDown()
protected function tearDown()
{
$this->authenticationManager = null;
$this->dispatcher = null;

View File

@ -29,7 +29,7 @@ class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase
*/
private $metadata;
public function setUp()
protected function setUp()
{
$this->loader = new XmlFileLoader(__DIR__.'/../../Fixtures/serialization.xml');
$this->metadata = new ClassMetadata('Symfony\Component\Serializer\Tests\Fixtures\GroupDummy');

View File

@ -29,7 +29,7 @@ class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase
*/
private $metadata;
public function setUp()
protected function setUp()
{
$this->loader = new YamlFileLoader(__DIR__.'/../../Fixtures/serialization.yml');
$this->metadata = new ClassMetadata('Symfony\Component\Serializer\Tests\Fixtures\GroupDummy');

View File

@ -15,7 +15,7 @@ use Symfony\Component\Templating\Helper\AssetsHelper;
class LegacyAssetsHelperTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
protected function setUp()
{
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
}