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:
commit
5d3d913404
@ -26,7 +26,7 @@ class DoctrineExtractorTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
private $extractor;
|
private $extractor;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__.DIRECTORY_SEPARATOR.'Fixtures'), true);
|
$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__.DIRECTORY_SEPARATOR.'Fixtures'), true);
|
||||||
$entityManager = EntityManager::create(array('driver' => 'pdo_sqlite'), $config);
|
$entityManager = EntityManager::create(array('driver' => 'pdo_sqlite'), $config);
|
||||||
|
@ -12,7 +12,7 @@ class DelegatingLoaderTest extends \PHPUnit_Framework_TestCase
|
|||||||
/** @var ControllerNameParser */
|
/** @var ControllerNameParser */
|
||||||
private $controllerNameParser;
|
private $controllerNameParser;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$this->controllerNameParser = $this->getMockBuilder('Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser')
|
$this->controllerNameParser = $this->getMockBuilder('Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
|
@ -24,7 +24,7 @@ class PhpDocExtractorTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
private $extractor;
|
private $extractor;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$this->extractor = new PhpDocExtractor();
|
$this->extractor = new PhpDocExtractor();
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ class ReflectionExtractorTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
private $extractor;
|
private $extractor;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$this->extractor = new ReflectionExtractor();
|
$this->extractor = new ReflectionExtractor();
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ class SerializerExtractorTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
private $extractor;
|
private $extractor;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$classMetadataFactory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader()));
|
$classMetadataFactory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader()));
|
||||||
$this->extractor = new SerializerExtractor($classMetadataFactory);
|
$this->extractor = new SerializerExtractor($classMetadataFactory);
|
||||||
|
@ -26,7 +26,7 @@ class PropertyInfoExtractorTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
private $propertyInfo;
|
private $propertyInfo;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$extractors = array(new NullExtractor(), new DummyExtractor());
|
$extractors = array(new NullExtractor(), new DummyExtractor());
|
||||||
$this->propertyInfo = new PropertyInfoExtractor($extractors, $extractors, $extractors, $extractors);
|
$this->propertyInfo = new PropertyInfoExtractor($extractors, $extractors, $extractors, $extractors);
|
||||||
|
Reference in New Issue
Block a user