Skip to content

Commit 3e02eaf

Browse files
kriswallsmithfabpot
authored andcommitted
Fixed visibility of PHPUnit setUp and tearDown methods.
1 parent 112fb5a commit 3e02eaf

File tree

52 files changed

+57
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+57
-57
lines changed

src/Symfony/Bundle/DoctrineBundle/Tests/Form/ValueTransformer/CollectionToChoiceTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CollectionToChoiceTransformerTest extends \Symfony\Bundle\DoctrineBundle\T
1313
*/
1414
private $em;
1515

16-
public function setUp()
16+
protected function setUp()
1717
{
1818
parent::setUp();
1919
$this->em = $this->createTestEntityManager();

src/Symfony/Bundle/DoctrineBundle/Tests/Form/ValueTransformer/CollectionToStringTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CollectionToStringTransformerTest extends \Symfony\Bundle\DoctrineBundle\T
1313
*/
1414
private $em;
1515

16-
public function setUp()
16+
protected function setUp()
1717
{
1818
parent::setUp();
1919
$this->em = $this->createTestEntityManager();

src/Symfony/Bundle/DoctrineBundle/Tests/Form/ValueTransformer/EntityToIDTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class EntityToIDTransformerTest extends \Symfony\Bundle\DoctrineBundle\Tests\Tes
1313
*/
1414
private $em;
1515

16-
public function setUp()
16+
protected function setUp()
1717
{
1818
parent::setUp();
1919
$this->em = $this->createTestEntityManager();

src/Symfony/Bundle/DoctrineBundle/Tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class TestCase extends \PHPUnit_Framework_TestCase
1717
{
18-
public function setUp()
18+
protected function setUp()
1919
{
2020
if (!class_exists('Doctrine\\Common\\Version')) {
2121
$this->markTestSkipped('Doctrine is not available.');

src/Symfony/Bundle/DoctrineMongoDBBundle/Tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class TestCase extends \PHPUnit_Framework_TestCase
1515
{
16-
public function setUp()
16+
protected function setUp()
1717
{
1818
if (!class_exists('Doctrine\\ODM\\MongoDB\\Version')) {
1919
$this->markTestSkipped('Doctrine MongoDB ODM is not available.');

src/Symfony/Bundle/FrameworkBundle/Tests/Util/MustacheTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MustacheTest extends TestCase
1919
{
2020
protected $dir;
2121

22-
public function setUp()
22+
protected function setUp()
2323
{
2424
$dir = __DIR__.'/fixtures/';
2525

@@ -28,7 +28,7 @@ public function setUp()
2828
$filesystem->mirror($dir, $this->dir);
2929
}
3030

31-
public function tearDown()
31+
protected function tearDown()
3232
{
3333
$filesystem = new Filesystem();
3434
$filesystem->remove($this->dir);

src/Symfony/Bundle/SwiftmailerBundle/Tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class TestCase extends \PHPUnit_Framework_TestCase
1515
{
16-
public function setUp()
16+
protected function setUp()
1717
{
1818
if (!class_exists('Swift_Mailer')) {
1919
$this->markTestSkipped('Swiftmailer is not available.');

src/Symfony/Bundle/TwigBundle/Tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class TestCase extends \PHPUnit_Framework_TestCase
1515
{
16-
public function setUp()
16+
protected function setUp()
1717
{
1818
if (!class_exists('Twig_Environment')) {
1919
$this->markTestSkipped('Twig is not available.');

src/Symfony/Bundle/ZendBundle/Tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class TestCase extends \PHPUnit_Framework_TestCase
1515
{
16-
public function setUp()
16+
protected function setUp()
1717
{
1818
if (!class_exists('Zend\\Log\\Logger')) {
1919
$this->markTestSkipped('Zend Framework is not available.');

tests/Symfony/Tests/Component/Console/Output/StreamOutputTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class StreamOutputTest extends \PHPUnit_Framework_TestCase
1717
{
1818
protected $stream;
1919

20-
public function setUp()
20+
protected function setUp()
2121
{
2222
$this->stream = fopen('php://memory', 'a', false);
2323
}

tests/Symfony/Tests/Component/Console/Tester/ApplicationTesterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ApplicationTesterTest extends \PHPUnit_Framework_TestCase
1919
protected $application;
2020
protected $tester;
2121

22-
public function setUp()
22+
protected function setUp()
2323
{
2424
$this->application = new Application();
2525
$this->application->setAutoExit(false);

tests/Symfony/Tests/Component/Console/Tester/CommandTesterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CommandTesterTest extends \PHPUnit_Framework_TestCase
1919
protected $application;
2020
protected $tester;
2121

22-
public function setUp()
22+
protected function setUp()
2323
{
2424
$this->command = new Command('foo');
2525
$this->command->addArgument('command');

tests/Symfony/Tests/Component/CssSelector/TokenizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TokenizerTest extends \PHPUnit_Framework_TestCase
1717
{
1818
protected $tokenizer;
1919

20-
public function setUp()
20+
protected function setUp()
2121
{
2222
$this->tokenizer = new Tokenizer();
2323
}

tests/Symfony/Tests/Component/DependencyInjection/Resource/FileResourceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ class FileResourceTest extends \PHPUnit_Framework_TestCase
1717
protected $resource;
1818
protected $file;
1919

20-
public function setUp()
20+
protected function setUp()
2121
{
2222
$this->file = sys_get_temp_dir().'/tmp.xml';
2323
touch($this->file);
2424
$this->resource = new FileResource($this->file);
2525
}
2626

27-
public function tearDown()
27+
protected function tearDown()
2828
{
2929
unlink($this->file);
3030
}

tests/Symfony/Tests/Component/Form/FileFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static function setUpBeforeClass()
1919
@session_start();
2020
}
2121

22-
public function tearDown()
22+
protected function tearDown()
2323
{
2424
foreach (self::$tmpFiles as $key => $file) {
2525
@unlink($file);

tests/Symfony/Tests/Component/Form/HiddenFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class HiddenFieldTest extends \PHPUnit_Framework_TestCase
88
{
99
protected $field;
1010

11-
public function setUp()
11+
protected function setUp()
1212
{
1313
$this->field = new HiddenField('name');
1414
}

tests/Symfony/Tests/Component/Form/LocalizedTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class LocalizedTestCase extends \PHPUnit_Framework_TestCase
66
{
7-
public function setUp()
7+
protected function setUp()
88
{
99
if (!extension_loaded('intl')) {
1010
$this->markTestSkipped('The "intl" extension is not available');

tests/Symfony/Tests/Component/Form/RepeatedFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class RepeatedFieldTest extends \PHPUnit_Framework_TestCase
1111
{
1212
protected $field;
1313

14-
public function setUp()
14+
protected function setUp()
1515
{
1616
$this->field = new RepeatedField(new TestField('name'));
1717
}

tests/Symfony/Tests/Component/Form/ValueTransformer/BooleanToStringTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class BooleanToStringTransformerTest extends \PHPUnit_Framework_TestCase
88
{
99
protected $transformer;
1010

11-
public function setUp()
11+
protected function setUp()
1212
{
1313
$this->transformer = new BooleanToStringTransformer();
1414
}

tests/Symfony/Tests/Component/Form/ValueTransformer/DateTimeToLocalizedStringTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DateTimeToLocalizedStringTransformerTest extends DateTimeTestCase
1212
protected $dateTime;
1313
protected $dateTimeWithoutSeconds;
1414

15-
public function setUp()
15+
protected function setUp()
1616
{
1717
parent::setUp();
1818

tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class FileTest extends \PHPUnit_Framework_TestCase
1010
{
1111
protected $file;
1212

13-
public function setUp()
13+
protected function setUp()
1414
{
1515
$this->file = new File(__DIR__.'/Fixtures/test.gif');
1616
}

tests/Symfony/Tests/Component/HttpKernel/Cache/CacheTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CacheTestCase extends \PHPUnit_Framework_TestCase
2727
protected $response;
2828
protected $responses;
2929

30-
public function setUp()
30+
protected function setUp()
3131
{
3232
$this->kernel = null;
3333

@@ -42,7 +42,7 @@ public function setUp()
4242
$this->clearDirectory(sys_get_temp_dir().'/http_cache');
4343
}
4444

45-
public function tearDown()
45+
protected function tearDown()
4646
{
4747
$this->kernel = null;
4848
$this->cache = null;

tests/Symfony/Tests/Component/HttpKernel/Cache/StoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CacheStoreTest extends \PHPUnit_Framework_TestCase
2323
protected $response;
2424
protected $store;
2525

26-
public function setUp()
26+
protected function setUp()
2727
{
2828
$this->request = Request::create('/');
2929
$this->response = new Response('hello world', 200, array());
@@ -33,7 +33,7 @@ public function setUp()
3333
$this->store = new Store(sys_get_temp_dir().'/http_cache');
3434
}
3535

36-
public function tearDown()
36+
protected function tearDown()
3737
{
3838
$this->store = null;
3939

tests/Symfony/Tests/Component/Validator/Constraints/AllValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AllValidatorTest extends \PHPUnit_Framework_TestCase
1313
protected $walker;
1414
protected $context;
1515

16-
public function setUp()
16+
protected function setUp()
1717
{
1818
$this->walker = $this->getMock('Symfony\Component\Validator\GraphWalker', array(), array(), '', false);
1919
$metadataFactory = $this->getMock('Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface');

tests/Symfony/Tests/Component/Validator/Constraints/AssertFalseValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class AssertFalseValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new AssertFalseValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/AssertTrueValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class AssertTrueValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new AssertTrueValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/AssertTypeValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class AssertTypeValidatorTest extends \PHPUnit_Framework_TestCase
1111

1212
protected $validator;
1313

14-
public function setUp()
14+
protected function setUp()
1515
{
1616
$this->validator = new AssertTypeValidator();
1717
}

tests/Symfony/Tests/Component/Validator/Constraints/BlankValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class BlankValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new BlankValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/ChoiceValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function staticCallback()
2020
return array('foo', 'bar');
2121
}
2222

23-
public function setUp()
23+
protected function setUp()
2424
{
2525
$walker = $this->getMock('Symfony\Component\Validator\GraphWalker', array(), array(), '', false);
2626
$factory = $this->getMock('Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface');

tests/Symfony/Tests/Component/Validator/Constraints/CollectionValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CollectionValidatorTest extends \PHPUnit_Framework_TestCase
1313
protected $walker;
1414
protected $context;
1515

16-
public function setUp()
16+
protected function setUp()
1717
{
1818
$this->walker = $this->getMock('Symfony\Component\Validator\GraphWalker', array(), array(), '', false);
1919
$metadataFactory = $this->getMock('Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface');

tests/Symfony/Tests/Component/Validator/Constraints/DateTimeValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class DateTimeValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new DateTimeValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/DateValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class DateValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new DateValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/EmailValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class EmailValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new EmailValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/FileValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ class FileValidatorTest extends \PHPUnit_Framework_TestCase
1111
protected $path;
1212
protected $file;
1313

14-
public function setUp()
14+
protected function setUp()
1515
{
1616
$this->validator = new FileValidator();
1717
$this->path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'FileValidatorTest';
1818
$this->file = fopen($this->path, 'w');
1919
}
2020

21-
public function tearDown()
21+
protected function tearDown()
2222
{
2323
fclose($this->file);
2424
}

tests/Symfony/Tests/Component/Validator/Constraints/MaxLengthValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MaxLengthValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new MaxLengthValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/MaxValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MaxValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new MaxValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/MinLengthValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MinLengthValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new MinLengthValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/MinValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MinValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new MinValidator();
1515
}

tests/Symfony/Tests/Component/Validator/Constraints/NotBlankValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class NotBlankValidatorTest extends \PHPUnit_Framework_TestCase
99
{
1010
protected $validator;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
$this->validator = new NotBlankValidator();
1515
}

0 commit comments

Comments
 (0)