Change few occurences of a public setUp() method to protected
This commit is contained in:
parent
c8d28b1fa6
commit
0a883a94f1
@ -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);
|
||||
|
@ -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()
|
||||
|
@ -24,7 +24,7 @@ class PhpDocExtractorTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
private $extractor;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
$this->extractor = new PhpDocExtractor();
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class ReflectionExtractorTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
private $extractor;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp()
|
||||
{
|
||||
$this->extractor = new ReflectionExtractor();
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user