From 48d5e20e7ed999a9bc615cc9e127464b153a8d82 Mon Sep 17 00:00:00 2001 From: sarah khalil Date: Wed, 11 Mar 2015 19:44:00 +0100 Subject: [PATCH] Changed visibility of setUp() and tearDown to protected --- src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php | 4 ++-- .../FrameworkBundle/Tests/Templating/GlobalVariablesTest.php | 2 +- .../ClassLoader/Tests/LegacyUniversalClassLoaderTest.php | 2 +- .../Component/Console/Tests/Helper/LegacyDialogHelperTest.php | 2 +- .../Console/Tests/Helper/LegacyProgressHelperTest.php | 2 +- .../DependencyInjection/Tests/LegacyContainerBuilderTest.php | 2 +- .../Extension/DataCollector/DataCollectorExtensionTest.php | 2 +- .../DataCollector/Type/DataCollectorTypeExtensionTest.php | 2 +- .../HttpKernel/Tests/EventListener/RouterListenerTest.php | 2 +- .../HttpKernel/Tests/Fragment/FragmentHandlerTest.php | 2 +- .../Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php | 2 +- .../Core/Tests/Authorization/AuthorizationCheckerTest.php | 2 +- .../Component/Security/Core/Tests/SecurityContextTest.php | 2 +- .../Tests/Authentication/SimpleAuthenticationHandlerTest.php | 2 +- .../Tests/Core/Authentication/Voter/AbstractVoterTest.php | 2 +- .../Component/Translation/Tests/TranslatorCacheTest.php | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php index 8d5bd99136..de8d81e552 100644 --- a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php @@ -98,12 +98,12 @@ class LintCommandTest extends \PHPUnit_Framework_TestCase return $filename; } - public function setUp() + protected function setUp() { $this->files = array(); } - public function tearDown() + protected function tearDown() { foreach ($this->files as $file) { if (file_exists($file)) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/GlobalVariablesTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/GlobalVariablesTest.php index ba2ea37668..cddfd5a2ae 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/GlobalVariablesTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/GlobalVariablesTest.php @@ -20,7 +20,7 @@ class GlobalVariablesTest extends TestCase private $container; private $globals; - public function setUp() + protected function setUp() { $this->container = new Container(); $this->globals = new GlobalVariables($this->container); diff --git a/src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php index f654f792fb..f5e5ef8ef9 100644 --- a/src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php @@ -15,7 +15,7 @@ use Symfony\Component\ClassLoader\UniversalClassLoader; class LegacyUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase { - public function setUp() + protected function setUp() { $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED); } diff --git a/src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php index 961db0bcf0..86ccd7e3bf 100644 --- a/src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php @@ -19,7 +19,7 @@ use Symfony\Component\Console\Output\StreamOutput; class LegacyDialogHelperTest extends \PHPUnit_Framework_TestCase { - public function setUp() + protected function setUp() { $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED); } diff --git a/src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php index 5dee669f46..72d0de568c 100644 --- a/src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php @@ -16,7 +16,7 @@ use Symfony\Component\Console\Output\StreamOutput; class LegacyProgressHelperTest extends \PHPUnit_Framework_TestCase { - public function setUp() + protected function setUp() { $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED); } diff --git a/src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php b/src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php index c837de4ef5..7f57c99d37 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\Reference; class LegacyContainerBuilderTest extends \PHPUnit_Framework_TestCase { - public function setUp() + protected function setUp() { $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED); } diff --git a/src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php b/src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php index 9f5991c105..ce4367cbe4 100644 --- a/src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php @@ -28,7 +28,7 @@ class DataCollectorExtensionTest extends \PHPUnit_Framework_TestCase */ private $dataCollector; - public function setUp() + protected function setUp() { $this->dataCollector = $this->getMock('Symfony\Component\Form\Extension\DataCollector\FormDataCollectorInterface'); $this->extension = new DataCollectorExtension($this->dataCollector); diff --git a/src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php b/src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php index cb77456984..d881127685 100644 --- a/src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php @@ -24,7 +24,7 @@ class DataCollectorTypeExtensionTest extends \PHPUnit_Framework_TestCase */ private $dataCollector; - public function setUp() + protected function setUp() { $this->dataCollector = $this->getMock('Symfony\Component\Form\Extension\DataCollector\FormDataCollectorInterface'); $this->extension = new DataCollectorTypeExtension($this->dataCollector); diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php index ac742b35e0..d6e5b45ba1 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php @@ -22,7 +22,7 @@ class RouterListenerTest extends \PHPUnit_Framework_TestCase { private $requestStack; - public function setUp() + protected function setUp() { $this->requestStack = $this->getMock('Symfony\Component\HttpFoundation\RequestStack', array(), array(), '', false); } diff --git a/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php b/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php index 1893d85b80..b2903b84a1 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php @@ -19,7 +19,7 @@ class FragmentHandlerTest extends \PHPUnit_Framework_TestCase { private $requestStack; - public function setUp() + protected function setUp() { $this->requestStack = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\RequestStack') ->disableOriginalConstructor() diff --git a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php index 1cdb3d3a5c..54eec42dc3 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php @@ -24,7 +24,7 @@ class LegacyApacheMatcherDumperTest extends \PHPUnit_Framework_TestCase self::$fixturesPath = realpath(__DIR__.'/../../Fixtures/'); } - public function setUp() + protected function setUp() { $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED); } diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php index 64de6ef982..aafc12fd90 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php @@ -21,7 +21,7 @@ class AuthorizationCheckerTest extends \PHPUnit_Framework_TestCase private $authorizationChecker; private $tokenStorage; - public function setUp() + protected function setUp() { $this->authenticationManager = $this->getMock('Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface'); $this->accessDecisionManager = $this->getMock('Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface'); diff --git a/src/Symfony/Component/Security/Core/Tests/SecurityContextTest.php b/src/Symfony/Component/Security/Core/Tests/SecurityContextTest.php index 886c59612d..bcf9ad9c86 100644 --- a/src/Symfony/Component/Security/Core/Tests/SecurityContextTest.php +++ b/src/Symfony/Component/Security/Core/Tests/SecurityContextTest.php @@ -21,7 +21,7 @@ class SecurityContextTest extends \PHPUnit_Framework_TestCase private $authorizationChecker; private $securityContext; - public function setUp() + protected function setUp() { $this->tokenStorage = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface'); $this->authorizationChecker = $this->getMock('Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface'); diff --git a/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php index 97167c992d..6e79b07a31 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php @@ -31,7 +31,7 @@ class SimpleAuthenticationHandlerTest extends \PHPUnit_Framework_TestCase private $response; - public function setUp() + protected function setUp() { $this->successHandler = $this->getMock('Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface'); $this->failureHandler = $this->getMock('Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface'); diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Voter/AbstractVoterTest.php b/src/Symfony/Component/Security/Tests/Core/Authentication/Voter/AbstractVoterTest.php index 955b610d2f..c5e946666f 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Voter/AbstractVoterTest.php +++ b/src/Symfony/Component/Security/Tests/Core/Authentication/Voter/AbstractVoterTest.php @@ -25,7 +25,7 @@ class AbstractVoterTest extends \PHPUnit_Framework_TestCase private $token; - public function setUp() + protected function setUp() { $this->voter = new VoterFixture(); diff --git a/src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php b/src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php index 088fe21ccd..8b913f3a49 100644 --- a/src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php +++ b/src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php @@ -25,7 +25,7 @@ class TranslatorCacheTest extends \PHPUnit_Framework_TestCase $this->deleteTmpDir(); } - public function tearDown() + protected function tearDown() { $this->deleteTmpDir(); }