Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit d470762

Browse files
committed
Use protected setUp/tearDown
1 parent 2f5c432 commit d470762

21 files changed

+31
-31
lines changed

test/Annotation/AnnotationManagerTest.php

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

1919
class AnnotationManagerTest extends TestCase
2020
{
21-
public function setUp(): void
21+
protected function setUp() : void
2222
{
2323
if (! getenv('TESTS_ZEND_CODE_ANNOTATION_DOCTRINE_SUPPORT')) {
2424
$this->markTestSkipped(

test/Annotation/DoctrineAnnotationParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class DoctrineAnnotationParserTest extends TestCase
2323
*/
2424
private $parser;
2525

26-
public function setUp(): void
26+
protected function setUp() : void
2727
{
2828
if (! getenv('TESTS_ZEND_CODE_ANNOTATION_DOCTRINE_SUPPORT')) {
2929
$this->markTestSkipped(

test/Annotation/GenericAnnotationParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GenericAnnotationParserTest extends TestCase
2323
*/
2424
private $parser;
2525

26-
public function setUp(): void
26+
protected function setUp() : void
2727
{
2828
$this->parser = new Annotation\Parser\GenericAnnotationParser();
2929
}

test/Generator/AbstractMemberGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class AbstractMemberGeneratorTest extends TestCase
2020
*/
2121
private $fixture;
2222

23-
protected function setUp(): void
23+
protected function setUp() : void
2424
{
2525
$this->fixture = $this->getMockForAbstractClass(AbstractMemberGenerator::class);
2626
}

test/Generator/DocBlock/Tag/AuthorTagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class AuthorTagTest extends TestCase
3030
*/
3131
protected $tagmanager;
3232

33-
public function setUp(): void
33+
protected function setUp() : void
3434
{
3535
$this->tag = new AuthorTag();
3636
$this->tagmanager = new TagManager();
3737
$this->tagmanager->initializeDefaultTags();
3838
}
3939

40-
public function tearDown(): void
40+
protected function tearDown() : void
4141
{
4242
$this->tag = null;
4343
$this->tagmanager = null;

test/Generator/DocBlock/Tag/GenericTagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class GenericTagTest extends TestCase
3030
*/
3131
protected $tagmanager;
3232

33-
public function setUp(): void
33+
protected function setUp() : void
3434
{
3535
$this->tag = new GenericTag();
3636
$this->tagmanager = new TagManager();
3737
$this->tagmanager->initializeDefaultTags();
3838
}
3939

40-
public function tearDown(): void
40+
protected function tearDown() : void
4141
{
4242
$this->tag = null;
4343
$this->tagmanager = null;

test/Generator/DocBlock/Tag/LicenseTagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class LicenseTagTest extends TestCase
3030
*/
3131
protected $tagmanager;
3232

33-
public function setUp(): void
33+
protected function setUp() : void
3434
{
3535
$this->tag = new LicenseTag();
3636
$this->tagmanager = new TagManager();
3737
$this->tagmanager->initializeDefaultTags();
3838
}
3939

40-
public function tearDown(): void
40+
protected function tearDown() : void
4141
{
4242
$this->tag = null;
4343
$this->tagmanager = null;

test/Generator/DocBlock/Tag/MethodTagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class MethodTagTest extends TestCase
3030
*/
3131
protected $tagmanager;
3232

33-
public function setUp(): void
33+
protected function setUp() : void
3434
{
3535
$this->tag = new MethodTag();
3636
$this->tagmanager = new TagManager();
3737
$this->tagmanager->initializeDefaultTags();
3838
}
3939

40-
public function tearDown(): void
40+
protected function tearDown() : void
4141
{
4242
$this->tag = null;
4343
$this->tagmanager = null;

test/Generator/DocBlock/Tag/ParamTagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class ParamTagTest extends TestCase
3030
*/
3131
protected $tagmanager;
3232

33-
public function setUp(): void
33+
protected function setUp() : void
3434
{
3535
$this->tag = new ParamTag();
3636
$this->tagmanager = new TagManager();
3737
$this->tagmanager->initializeDefaultTags();
3838
}
3939

40-
public function tearDown(): void
40+
protected function tearDown() : void
4141
{
4242
$this->tag = null;
4343
$this->tagmanager = null;

test/Generator/DocBlock/Tag/PropertyTagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class PropertyTagTest extends TestCase
3030
*/
3131
protected $tagmanager;
3232

33-
public function setUp(): void
33+
protected function setUp() : void
3434
{
3535
$this->tag = new PropertyTag();
3636
$this->tagmanager = new TagManager();
3737
$this->tagmanager->initializeDefaultTags();
3838
}
3939

40-
public function tearDown(): void
40+
protected function tearDown() : void
4141
{
4242
$this->tag = null;
4343
$this->tagmanager = null;

0 commit comments

Comments
 (0)