minor #17567 Change few occurences of a public setUp() method to protected (jakzal)

This PR was merged into the 2.8 branch.

Discussion
----------

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

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

#17566 for the 2.8 branch. Occurrences fixed in #17566 are not included here.

Commits
-------

0a883a9 Change few occurences of a public setUp() method to protected
This commit is contained in:
Fabien Potencier 2016-01-27 16:33:51 +01:00
commit 5d3d913404
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);