Changed visibility of setUp() and tearDown to protected

This commit is contained in:
sarah khalil 2015-03-11 19:44:00 +01:00
parent 900558c9c4
commit 48d5e20e7e
16 changed files with 17 additions and 17 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -25,7 +25,7 @@ class AbstractVoterTest extends \PHPUnit_Framework_TestCase
private $token;
public function setUp()
protected function setUp()
{
$this->voter = new VoterFixture();

View File

@ -25,7 +25,7 @@ class TranslatorCacheTest extends \PHPUnit_Framework_TestCase
$this->deleteTmpDir();
}
public function tearDown()
protected function tearDown()
{
$this->deleteTmpDir();
}