Changed visibility of setUp() and tearDown to protected

This commit is contained in:
sarah khalil 2015-03-11 19:39:59 +01:00
parent 6aa74b8daf
commit a818ab2fb1
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);
}