Skip to content

Commit 18bb157

Browse files
minor #13905 [2.6] Changed visibility of setUp() and tearDown to protected (saro0h)
This PR was merged into the 2.6 branch. Discussion ---------- [2.6] 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 ------- 48d5e20 Changed visibility of setUp() and tearDown to protected
2 parents 900558c + 48d5e20 commit 18bb157

File tree

16 files changed

+17
-17
lines changed

16 files changed

+17
-17
lines changed

src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ private function createFile($content)
9898
return $filename;
9999
}
100100

101-
public function setUp()
101+
protected function setUp()
102102
{
103103
$this->files = array();
104104
}
105105

106-
public function tearDown()
106+
protected function tearDown()
107107
{
108108
foreach ($this->files as $file) {
109109
if (file_exists($file)) {

src/Symfony/Bundle/FrameworkBundle/Tests/Templating/GlobalVariablesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class GlobalVariablesTest extends TestCase
2020
private $container;
2121
private $globals;
2222

23-
public function setUp()
23+
protected function setUp()
2424
{
2525
$this->container = new Container();
2626
$this->globals = new GlobalVariables($this->container);

src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class LegacyUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
1717
{
18-
public function setUp()
18+
protected function setUp()
1919
{
2020
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
2121
}

src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class LegacyDialogHelperTest extends \PHPUnit_Framework_TestCase
2121
{
22-
public function setUp()
22+
protected function setUp()
2323
{
2424
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
2525
}

src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class LegacyProgressHelperTest extends \PHPUnit_Framework_TestCase
1818
{
19-
public function setUp()
19+
protected function setUp()
2020
{
2121
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
2222
}

src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class LegacyContainerBuilderTest extends \PHPUnit_Framework_TestCase
1818
{
19-
public function setUp()
19+
protected function setUp()
2020
{
2121
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
2222
}

src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DataCollectorExtensionTest extends \PHPUnit_Framework_TestCase
2828
*/
2929
private $dataCollector;
3030

31-
public function setUp()
31+
protected function setUp()
3232
{
3333
$this->dataCollector = $this->getMock('Symfony\Component\Form\Extension\DataCollector\FormDataCollectorInterface');
3434
$this->extension = new DataCollectorExtension($this->dataCollector);

src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class DataCollectorTypeExtensionTest extends \PHPUnit_Framework_TestCase
2424
*/
2525
private $dataCollector;
2626

27-
public function setUp()
27+
protected function setUp()
2828
{
2929
$this->dataCollector = $this->getMock('Symfony\Component\Form\Extension\DataCollector\FormDataCollectorInterface');
3030
$this->extension = new DataCollectorTypeExtension($this->dataCollector);

src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RouterListenerTest extends \PHPUnit_Framework_TestCase
2222
{
2323
private $requestStack;
2424

25-
public function setUp()
25+
protected function setUp()
2626
{
2727
$this->requestStack = $this->getMock('Symfony\Component\HttpFoundation\RequestStack', array(), array(), '', false);
2828
}

src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FragmentHandlerTest extends \PHPUnit_Framework_TestCase
1919
{
2020
private $requestStack;
2121

22-
public function setUp()
22+
protected function setUp()
2323
{
2424
$this->requestStack = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\RequestStack')
2525
->disableOriginalConstructor()

src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function setUpBeforeClass()
2424
self::$fixturesPath = realpath(__DIR__.'/../../Fixtures/');
2525
}
2626

27-
public function setUp()
27+
protected function setUp()
2828
{
2929
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
3030
}

src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AuthorizationCheckerTest extends \PHPUnit_Framework_TestCase
2121
private $authorizationChecker;
2222
private $tokenStorage;
2323

24-
public function setUp()
24+
protected function setUp()
2525
{
2626
$this->authenticationManager = $this->getMock('Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface');
2727
$this->accessDecisionManager = $this->getMock('Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface');

src/Symfony/Component/Security/Core/Tests/SecurityContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SecurityContextTest extends \PHPUnit_Framework_TestCase
2121
private $authorizationChecker;
2222
private $securityContext;
2323

24-
public function setUp()
24+
protected function setUp()
2525
{
2626
$this->tokenStorage = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface');
2727
$this->authorizationChecker = $this->getMock('Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface');

src/Symfony/Component/Security/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class SimpleAuthenticationHandlerTest extends \PHPUnit_Framework_TestCase
3131

3232
private $response;
3333

34-
public function setUp()
34+
protected function setUp()
3535
{
3636
$this->successHandler = $this->getMock('Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface');
3737
$this->failureHandler = $this->getMock('Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface');

src/Symfony/Component/Security/Tests/Core/Authentication/Voter/AbstractVoterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class AbstractVoterTest extends \PHPUnit_Framework_TestCase
2525

2626
private $token;
2727

28-
public function setUp()
28+
protected function setUp()
2929
{
3030
$this->voter = new VoterFixture();
3131

src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function setUp()
2525
$this->deleteTmpDir();
2626
}
2727

28-
public function tearDown()
28+
protected function tearDown()
2929
{
3030
$this->deleteTmpDir();
3131
}

0 commit comments

Comments
 (0)