Change few occurences of a public setUp() method to protected

This commit is contained in:
Jakub Zalas 2016-01-27 11:49:43 +00:00
parent c8d28b1fa6
commit 0a883a94f1
6 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ class DoctrineExtractorTest extends \PHPUnit_Framework_TestCase
*/
private $extractor;
public function setUp()
protected function setUp()
{
$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__.DIRECTORY_SEPARATOR.'Fixtures'), true);
$entityManager = EntityManager::create(array('driver' => 'pdo_sqlite'), $config);

View File

@ -12,7 +12,7 @@ class DelegatingLoaderTest extends \PHPUnit_Framework_TestCase
/** @var ControllerNameParser */
private $controllerNameParser;
public function setUp()
protected function setUp()
{
$this->controllerNameParser = $this->getMockBuilder('Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser')
->disableOriginalConstructor()

View File

@ -24,7 +24,7 @@ class PhpDocExtractorTest extends \PHPUnit_Framework_TestCase
*/
private $extractor;
public function setUp()
protected function setUp()
{
$this->extractor = new PhpDocExtractor();
}

View File

@ -24,7 +24,7 @@ class ReflectionExtractorTest extends \PHPUnit_Framework_TestCase
*/
private $extractor;
public function setUp()
protected function setUp()
{
$this->extractor = new ReflectionExtractor();
}

View File

@ -26,7 +26,7 @@ class SerializerExtractorTest extends \PHPUnit_Framework_TestCase
*/
private $extractor;
public function setUp()
protected function setUp()
{
$classMetadataFactory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader()));
$this->extractor = new SerializerExtractor($classMetadataFactory);

View File

@ -26,7 +26,7 @@ class PropertyInfoExtractorTest extends \PHPUnit_Framework_TestCase
*/
private $propertyInfo;
public function setUp()
protected function setUp()
{
$extractors = array(new NullExtractor(), new DummyExtractor());
$this->propertyInfo = new PropertyInfoExtractor($extractors, $extractors, $extractors, $extractors);