From c006d4a2d58b8d021872512cf77bfa7d62106bd8 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Sat, 11 Nov 2017 00:01:07 -0200 Subject: [PATCH] Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase --- tests/integration/DocblocksWithAnnotationsTest.php | 4 +++- tests/integration/InterpretingDocBlocksTest.php | 3 ++- tests/integration/ReconstitutingADocBlockTest.php | 8 +++++++- tests/integration/UsingTagsTest.php | 4 +++- tests/unit/DocBlock/DescriptionFactoryTest.php | 3 ++- tests/unit/DocBlock/DescriptionTest.php | 3 ++- tests/unit/DocBlock/ExampleFinderTest.php | 3 ++- tests/unit/DocBlock/SerializerTest.php | 3 ++- tests/unit/DocBlock/StandardTagFactoryTest.php | 3 ++- tests/unit/DocBlock/Tags/AuthorTest.php | 12 +++++++----- tests/unit/DocBlock/Tags/CoversTest.php | 3 ++- tests/unit/DocBlock/Tags/DeprecatedTest.php | 3 ++- tests/unit/DocBlock/Tags/ExampleTest.php | 3 ++- .../DocBlock/Tags/Formatter/AlignFormatterTest.php | 3 ++- .../Tags/Formatter/PassthroughFormatterTest.php | 3 ++- tests/unit/DocBlock/Tags/GenericTest.php | 3 ++- tests/unit/DocBlock/Tags/LinkTest.php | 3 ++- tests/unit/DocBlock/Tags/MethodTest.php | 3 ++- tests/unit/DocBlock/Tags/ParamTest.php | 3 ++- tests/unit/DocBlock/Tags/PropertyReadTest.php | 3 ++- tests/unit/DocBlock/Tags/PropertyTest.php | 3 ++- tests/unit/DocBlock/Tags/PropertyWriteTest.php | 3 ++- tests/unit/DocBlock/Tags/ReturnTest.php | 3 ++- tests/unit/DocBlock/Tags/SeeTest.php | 3 ++- tests/unit/DocBlock/Tags/SinceTest.php | 3 ++- tests/unit/DocBlock/Tags/SourceTest.php | 4 +++- tests/unit/DocBlock/Tags/ThrowsTest.php | 3 ++- tests/unit/DocBlock/Tags/UsesTest.php | 3 ++- tests/unit/DocBlock/Tags/VarTest.php | 3 ++- tests/unit/DocBlock/Tags/VersionTest.php | 3 ++- tests/unit/DocBlockFactoryTest.php | 3 ++- tests/unit/DocBlockTest.php | 3 ++- 32 files changed, 77 insertions(+), 36 deletions(-) diff --git a/tests/integration/DocblocksWithAnnotationsTest.php b/tests/integration/DocblocksWithAnnotationsTest.php index 54ac332..3a3d009 100644 --- a/tests/integration/DocblocksWithAnnotationsTest.php +++ b/tests/integration/DocblocksWithAnnotationsTest.php @@ -12,10 +12,12 @@ namespace phpDocumentor\Reflection; +use PHPUnit\Framework\TestCase; + /** * @coversNothing */ -final class DocblocksWithAnnotationsTest extends \PHPUnit_Framework_TestCase +final class DocblocksWithAnnotationsTest extends TestCase { public function testDocblockWithAnnotations() { diff --git a/tests/integration/InterpretingDocBlocksTest.php b/tests/integration/InterpretingDocBlocksTest.php index 5f4c84e..7194097 100644 --- a/tests/integration/InterpretingDocBlocksTest.php +++ b/tests/integration/InterpretingDocBlocksTest.php @@ -16,11 +16,12 @@ use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\StandardTagFactory; use phpDocumentor\Reflection\DocBlock\Tag; use phpDocumentor\Reflection\DocBlock\Tags\See; +use PHPUnit\Framework\TestCase; /** * @coversNothing */ -class InterpretingDocBlocksTest extends \PHPUnit_Framework_TestCase +class InterpretingDocBlocksTest extends TestCase { public function testInterpretingASimpleDocBlock() { diff --git a/tests/integration/ReconstitutingADocBlockTest.php b/tests/integration/ReconstitutingADocBlockTest.php index f915826..803d8ba 100644 --- a/tests/integration/ReconstitutingADocBlockTest.php +++ b/tests/integration/ReconstitutingADocBlockTest.php @@ -12,10 +12,16 @@ namespace phpDocumentor\Reflection; +use phpDocumentor\Reflection\DocBlock\Description; +use phpDocumentor\Reflection\DocBlock\StandardTagFactory; +use phpDocumentor\Reflection\DocBlock\Tag; +use phpDocumentor\Reflection\DocBlock\Tags\See; +use PHPUnit\Framework\TestCase; + /** * @coversNothing */ -class ReconstitutingADocBlockTest extends \PHPUnit_Framework_TestCase +class ReconstitutingADocBlockTest extends TestCase { public function testReconstituteADocBlock() { diff --git a/tests/integration/UsingTagsTest.php b/tests/integration/UsingTagsTest.php index 2205691..e0eb08a 100644 --- a/tests/integration/UsingTagsTest.php +++ b/tests/integration/UsingTagsTest.php @@ -14,11 +14,13 @@ namespace phpDocumentor\Reflection; use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\Tag; +use phpDocumentor\Reflection\DocBlock\Tags\See; +use PHPUnit\Framework\TestCase; /** * @coversNothing */ -class UsingTagsTest extends \PHPUnit_Framework_TestCase +class UsingTagsTest extends TestCase { public function testAddingYourOwnTagUsingAStaticMethodAsFactory() { diff --git a/tests/unit/DocBlock/DescriptionFactoryTest.php b/tests/unit/DocBlock/DescriptionFactoryTest.php index 10a6f03..6135126 100644 --- a/tests/unit/DocBlock/DescriptionFactoryTest.php +++ b/tests/unit/DocBlock/DescriptionFactoryTest.php @@ -15,12 +15,13 @@ namespace phpDocumentor\Reflection\DocBlock; use Mockery as m; use phpDocumentor\Reflection\DocBlock\Tags\Link; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\DescriptionFactory * @covers :: */ -class DescriptionFactoryTest extends \PHPUnit_Framework_TestCase +class DescriptionFactoryTest extends TestCase { /** * @covers ::__construct diff --git a/tests/unit/DocBlock/DescriptionTest.php b/tests/unit/DocBlock/DescriptionTest.php index d3ed94f..9ab45bb 100644 --- a/tests/unit/DocBlock/DescriptionTest.php +++ b/tests/unit/DocBlock/DescriptionTest.php @@ -15,11 +15,12 @@ namespace phpDocumentor\Reflection\DocBlock; use Mockery as m; use phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter; use phpDocumentor\Reflection\DocBlock\Tags\Generic; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Description */ -class DescriptionTest extends \PHPUnit_Framework_TestCase +class DescriptionTest extends TestCase { /** * @covers ::__construct diff --git a/tests/unit/DocBlock/ExampleFinderTest.php b/tests/unit/DocBlock/ExampleFinderTest.php index 6e083d4..f941e30 100644 --- a/tests/unit/DocBlock/ExampleFinderTest.php +++ b/tests/unit/DocBlock/ExampleFinderTest.php @@ -3,12 +3,13 @@ namespace phpDocumentor\Reflection\DocBlock; use phpDocumentor\Reflection\DocBlock\Tags\Example; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass phpDocumentor\Reflection\DocBlock\ExampleFinder * @covers :: */ -class ExampleFinderTest extends \PHPUnit_Framework_TestCase +class ExampleFinderTest extends TestCase { /** @var ExampleFinder */ private $fixture; diff --git a/tests/unit/DocBlock/SerializerTest.php b/tests/unit/DocBlock/SerializerTest.php index 1bb296b..04a985e 100644 --- a/tests/unit/DocBlock/SerializerTest.php +++ b/tests/unit/DocBlock/SerializerTest.php @@ -13,12 +13,13 @@ namespace phpDocumentor\Reflection\DocBlock; use phpDocumentor\Reflection\DocBlock; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Serializer * @covers :: */ -class SerializerTest extends \PHPUnit_Framework_TestCase +class SerializerTest extends TestCase { /** * @covers ::__construct diff --git a/tests/unit/DocBlock/StandardTagFactoryTest.php b/tests/unit/DocBlock/StandardTagFactoryTest.php index 3ccf0a8..ddf569f 100644 --- a/tests/unit/DocBlock/StandardTagFactoryTest.php +++ b/tests/unit/DocBlock/StandardTagFactoryTest.php @@ -23,12 +23,13 @@ use phpDocumentor\Reflection\Fqsen; use phpDocumentor\Reflection\FqsenResolver; use phpDocumentor\Reflection\TypeResolver; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass phpDocumentor\Reflection\DocBlock\StandardTagFactory * @covers :: */ -class StandardTagFactoryTest extends \PHPUnit_Framework_TestCase +class StandardTagFactoryTest extends TestCase { /** * @covers ::__construct diff --git a/tests/unit/DocBlock/Tags/AuthorTest.php b/tests/unit/DocBlock/Tags/AuthorTest.php index 87157f4..6473948 100644 --- a/tests/unit/DocBlock/Tags/AuthorTest.php +++ b/tests/unit/DocBlock/Tags/AuthorTest.php @@ -9,17 +9,18 @@ * @license http://www.opensource.org/licenses/mit-license.php MIT * @link http://phpdoc.org */ - namespace phpDocumentor\Reflection\DocBlock\Tags; use Mockery as m; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Author * @covers :: */ -class AuthorTest extends \PHPUnit_Framework_TestCase +class AuthorTest extends TestCase { + /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Author::__construct * @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getName @@ -121,7 +122,7 @@ class AuthorTest extends \PHPUnit_Framework_TestCase { $fixture = new Author('Mike van Riel', 'mike@phpdoc.org'); - $this->assertSame('Mike van Riel ', (string)$fixture); + $this->assertSame('Mike van Riel ', (string) $fixture); } /** @@ -132,7 +133,7 @@ class AuthorTest extends \PHPUnit_Framework_TestCase { $fixture = new Author('Mike van Riel', ''); - $this->assertSame('Mike van Riel', (string)$fixture); + $this->assertSame('Mike van Riel', (string) $fixture); } /** @@ -143,7 +144,7 @@ class AuthorTest extends \PHPUnit_Framework_TestCase { $fixture = Author::create('Mike van Riel '); - $this->assertSame('Mike van Riel ', (string)$fixture); + $this->assertSame('Mike van Riel ', (string) $fixture); $this->assertSame('Mike van Riel', $fixture->getAuthorName()); $this->assertSame('mike@phpdoc.org', $fixture->getEmail()); } @@ -156,4 +157,5 @@ class AuthorTest extends \PHPUnit_Framework_TestCase { $this->assertNull(Author::create('dfgr<')); } + } diff --git a/tests/unit/DocBlock/Tags/CoversTest.php b/tests/unit/DocBlock/Tags/CoversTest.php index a2b5e4b..2d31c8e 100644 --- a/tests/unit/DocBlock/Tags/CoversTest.php +++ b/tests/unit/DocBlock/Tags/CoversTest.php @@ -18,12 +18,13 @@ use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\Fqsen; use phpDocumentor\Reflection\FqsenResolver; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Covers * @covers :: */ -class CoversTest extends \PHPUnit_Framework_TestCase +class CoversTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Covers::__construct diff --git a/tests/unit/DocBlock/Tags/DeprecatedTest.php b/tests/unit/DocBlock/Tags/DeprecatedTest.php index f501354..6726521 100644 --- a/tests/unit/DocBlock/Tags/DeprecatedTest.php +++ b/tests/unit/DocBlock/Tags/DeprecatedTest.php @@ -16,12 +16,13 @@ use Mockery as m; use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Deprecated * @covers :: */ -class DeprecatedTest extends \PHPUnit_Framework_TestCase +class DeprecatedTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Deprecated::__construct diff --git a/tests/unit/DocBlock/Tags/ExampleTest.php b/tests/unit/DocBlock/Tags/ExampleTest.php index 7a30f23..002fb3a 100644 --- a/tests/unit/DocBlock/Tags/ExampleTest.php +++ b/tests/unit/DocBlock/Tags/ExampleTest.php @@ -3,11 +3,12 @@ namespace DocBlock\Tags; use phpDocumentor\Reflection\DocBlock\Tags\Example; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Example */ -class ExampleTest extends \PHPUnit_Framework_TestCase +class ExampleTest extends TestCase { /** * @covers ::create diff --git a/tests/unit/DocBlock/Tags/Formatter/AlignFormatterTest.php b/tests/unit/DocBlock/Tags/Formatter/AlignFormatterTest.php index 9ab42d1..df3456e 100644 --- a/tests/unit/DocBlock/Tags/Formatter/AlignFormatterTest.php +++ b/tests/unit/DocBlock/Tags/Formatter/AlignFormatterTest.php @@ -18,11 +18,12 @@ use phpDocumentor\Reflection\DocBlock\Tags\Link; use phpDocumentor\Reflection\DocBlock\Tags\Param; use phpDocumentor\Reflection\DocBlock\Tags\Version; use phpDocumentor\Reflection\Types\String_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Formatter\AlignFormatter */ -class AlignFormatterTest extends \PHPUnit_Framework_TestCase +class AlignFormatterTest extends TestCase { /** * @covers ::format diff --git a/tests/unit/DocBlock/Tags/Formatter/PassthroughFormatterTest.php b/tests/unit/DocBlock/Tags/Formatter/PassthroughFormatterTest.php index 3745fe1..9595ef7 100644 --- a/tests/unit/DocBlock/Tags/Formatter/PassthroughFormatterTest.php +++ b/tests/unit/DocBlock/Tags/Formatter/PassthroughFormatterTest.php @@ -14,11 +14,12 @@ namespace phpDocumentor\Reflection\DocBlock\Tags\Formatter; use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\Tags\Generic; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter */ -class PassthroughFormatterTest extends \PHPUnit_Framework_TestCase +class PassthroughFormatterTest extends TestCase { /** * @covers ::format diff --git a/tests/unit/DocBlock/Tags/GenericTest.php b/tests/unit/DocBlock/Tags/GenericTest.php index 02fa530..e2c9c2b 100644 --- a/tests/unit/DocBlock/Tags/GenericTest.php +++ b/tests/unit/DocBlock/Tags/GenericTest.php @@ -16,12 +16,13 @@ use Mockery as m; use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Generic * @covers :: */ -class GenericTest extends \PHPUnit_Framework_TestCase +class GenericTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Generic::__construct diff --git a/tests/unit/DocBlock/Tags/LinkTest.php b/tests/unit/DocBlock/Tags/LinkTest.php index 9940aec..e86564a 100644 --- a/tests/unit/DocBlock/Tags/LinkTest.php +++ b/tests/unit/DocBlock/Tags/LinkTest.php @@ -16,12 +16,13 @@ use Mockery as m; use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Link * @covers :: */ -class LinkTest extends \PHPUnit_Framework_TestCase +class LinkTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Link::__construct diff --git a/tests/unit/DocBlock/Tags/MethodTest.php b/tests/unit/DocBlock/Tags/MethodTest.php index 6a1f4c7..811915c 100644 --- a/tests/unit/DocBlock/Tags/MethodTest.php +++ b/tests/unit/DocBlock/Tags/MethodTest.php @@ -25,12 +25,13 @@ use phpDocumentor\Reflection\Types\Object_; use phpDocumentor\Reflection\Types\String_; use phpDocumentor\Reflection\Types\This; use phpDocumentor\Reflection\Types\Void_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Method * @covers :: */ -class MethodTest extends \PHPUnit_Framework_TestCase +class MethodTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Method::__construct diff --git a/tests/unit/DocBlock/Tags/ParamTest.php b/tests/unit/DocBlock/Tags/ParamTest.php index 0c718ab..1ec48e8 100644 --- a/tests/unit/DocBlock/Tags/ParamTest.php +++ b/tests/unit/DocBlock/Tags/ParamTest.php @@ -18,12 +18,13 @@ use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\TypeResolver; use phpDocumentor\Reflection\Types\Context; use phpDocumentor\Reflection\Types\String_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Param * @covers :: */ -class ParamTest extends \PHPUnit_Framework_TestCase +class ParamTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Param::__construct diff --git a/tests/unit/DocBlock/Tags/PropertyReadTest.php b/tests/unit/DocBlock/Tags/PropertyReadTest.php index 582479c..106ffe4 100644 --- a/tests/unit/DocBlock/Tags/PropertyReadTest.php +++ b/tests/unit/DocBlock/Tags/PropertyReadTest.php @@ -18,12 +18,13 @@ use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\TypeResolver; use phpDocumentor\Reflection\Types\Context; use phpDocumentor\Reflection\Types\String_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\PropertyRead * @covers :: */ -class PropertyReadTest extends \PHPUnit_Framework_TestCase +class PropertyReadTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\PropertyRead::__construct diff --git a/tests/unit/DocBlock/Tags/PropertyTest.php b/tests/unit/DocBlock/Tags/PropertyTest.php index 908dfb2..e6ee07a 100644 --- a/tests/unit/DocBlock/Tags/PropertyTest.php +++ b/tests/unit/DocBlock/Tags/PropertyTest.php @@ -18,12 +18,13 @@ use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\TypeResolver; use phpDocumentor\Reflection\Types\Context; use phpDocumentor\Reflection\Types\String_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Property * @covers :: */ -class PropertyTest extends \PHPUnit_Framework_TestCase +class PropertyTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Property::__construct diff --git a/tests/unit/DocBlock/Tags/PropertyWriteTest.php b/tests/unit/DocBlock/Tags/PropertyWriteTest.php index d0f8a13..a81a5e9 100644 --- a/tests/unit/DocBlock/Tags/PropertyWriteTest.php +++ b/tests/unit/DocBlock/Tags/PropertyWriteTest.php @@ -18,12 +18,13 @@ use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\TypeResolver; use phpDocumentor\Reflection\Types\Context; use phpDocumentor\Reflection\Types\String_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\PropertyWrite * @covers :: */ -class PropertyWriteTest extends \PHPUnit_Framework_TestCase +class PropertyWriteTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\PropertyWrite::__construct diff --git a/tests/unit/DocBlock/Tags/ReturnTest.php b/tests/unit/DocBlock/Tags/ReturnTest.php index 2bc5439..7625f81 100644 --- a/tests/unit/DocBlock/Tags/ReturnTest.php +++ b/tests/unit/DocBlock/Tags/ReturnTest.php @@ -18,12 +18,13 @@ use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\TypeResolver; use phpDocumentor\Reflection\Types\Context; use phpDocumentor\Reflection\Types\String_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Return_ * @covers :: */ -class ReturnTest extends \PHPUnit_Framework_TestCase +class ReturnTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Return_::__construct diff --git a/tests/unit/DocBlock/Tags/SeeTest.php b/tests/unit/DocBlock/Tags/SeeTest.php index 7b4750a..9ad80bd 100644 --- a/tests/unit/DocBlock/Tags/SeeTest.php +++ b/tests/unit/DocBlock/Tags/SeeTest.php @@ -20,12 +20,13 @@ use phpDocumentor\Reflection\DocBlock\Tags\Reference\Url as UrlRef; use phpDocumentor\Reflection\Fqsen; use phpDocumentor\Reflection\FqsenResolver; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\See * @covers :: */ -class SeeTest extends \PHPUnit_Framework_TestCase +class SeeTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\See::__construct diff --git a/tests/unit/DocBlock/Tags/SinceTest.php b/tests/unit/DocBlock/Tags/SinceTest.php index 3f42db5..eb1d4f9 100644 --- a/tests/unit/DocBlock/Tags/SinceTest.php +++ b/tests/unit/DocBlock/Tags/SinceTest.php @@ -16,12 +16,13 @@ use Mockery as m; use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Since * @covers :: */ -class SinceTest extends \PHPUnit_Framework_TestCase +class SinceTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Since::__construct diff --git a/tests/unit/DocBlock/Tags/SourceTest.php b/tests/unit/DocBlock/Tags/SourceTest.php index f1fea49..3dfb305 100644 --- a/tests/unit/DocBlock/Tags/SourceTest.php +++ b/tests/unit/DocBlock/Tags/SourceTest.php @@ -16,12 +16,14 @@ use Mockery as m; use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\Types\Context; +use phpDocumentor\Reflection\Types\String_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Source * @covers :: */ -class SourceTest extends \PHPUnit_Framework_TestCase +class SourceTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Source::__construct diff --git a/tests/unit/DocBlock/Tags/ThrowsTest.php b/tests/unit/DocBlock/Tags/ThrowsTest.php index 657d6ca..f5bac47 100644 --- a/tests/unit/DocBlock/Tags/ThrowsTest.php +++ b/tests/unit/DocBlock/Tags/ThrowsTest.php @@ -18,12 +18,13 @@ use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\TypeResolver; use phpDocumentor\Reflection\Types\Context; use phpDocumentor\Reflection\Types\String_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Throws * @covers :: */ -class ThrowsTest extends \PHPUnit_Framework_TestCase +class ThrowsTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Throws::__construct diff --git a/tests/unit/DocBlock/Tags/UsesTest.php b/tests/unit/DocBlock/Tags/UsesTest.php index 9fbe5f7..68f38d5 100644 --- a/tests/unit/DocBlock/Tags/UsesTest.php +++ b/tests/unit/DocBlock/Tags/UsesTest.php @@ -18,12 +18,13 @@ use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\Fqsen; use phpDocumentor\Reflection\FqsenResolver; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Uses * @covers :: */ -class UsesTest extends \PHPUnit_Framework_TestCase +class UsesTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Uses::__construct diff --git a/tests/unit/DocBlock/Tags/VarTest.php b/tests/unit/DocBlock/Tags/VarTest.php index bbc5d6b..828c0f5 100644 --- a/tests/unit/DocBlock/Tags/VarTest.php +++ b/tests/unit/DocBlock/Tags/VarTest.php @@ -18,12 +18,13 @@ use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\TypeResolver; use phpDocumentor\Reflection\Types\Context; use phpDocumentor\Reflection\Types\String_; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Var_ * @covers :: */ -class VarTest extends \PHPUnit_Framework_TestCase +class VarTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Var_::__construct diff --git a/tests/unit/DocBlock/Tags/VersionTest.php b/tests/unit/DocBlock/Tags/VersionTest.php index 5c487fd..9aaf938 100644 --- a/tests/unit/DocBlock/Tags/VersionTest.php +++ b/tests/unit/DocBlock/Tags/VersionTest.php @@ -16,12 +16,13 @@ use Mockery as m; use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Version * @covers :: */ -class VersionTest extends \PHPUnit_Framework_TestCase +class VersionTest extends TestCase { /** * @uses \phpDocumentor\Reflection\DocBlock\Tags\Version::__construct diff --git a/tests/unit/DocBlockFactoryTest.php b/tests/unit/DocBlockFactoryTest.php index f1261b6..4bdb7f9 100644 --- a/tests/unit/DocBlockFactoryTest.php +++ b/tests/unit/DocBlockFactoryTest.php @@ -19,6 +19,7 @@ use phpDocumentor\Reflection\DocBlock\Tag; use phpDocumentor\Reflection\DocBlock\TagFactory; use phpDocumentor\Reflection\DocBlock\Tags\Param; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass phpDocumentor\Reflection\DocBlockFactory @@ -26,7 +27,7 @@ use phpDocumentor\Reflection\Types\Context; * @uses \Webmozart\Assert\Assert * @uses phpDocumentor\Reflection\DocBlock */ -class DocBlockFactoryTest extends \PHPUnit_Framework_TestCase +class DocBlockFactoryTest extends TestCase { /** * @covers ::__construct diff --git a/tests/unit/DocBlockTest.php b/tests/unit/DocBlockTest.php index 277835f..b40bbe6 100644 --- a/tests/unit/DocBlockTest.php +++ b/tests/unit/DocBlockTest.php @@ -15,13 +15,14 @@ namespace phpDocumentor\Reflection; use Mockery as m; use phpDocumentor\Reflection\DocBlock\Tags\Deprecated; use phpDocumentor\Reflection\Types\Context; +use PHPUnit\Framework\TestCase; /** * @coversDefaultClass phpDocumentor\Reflection\DocBlock * @covers :: * @uses \Webmozart\Assert\Assert */ -class DocBlockTest extends \PHPUnit_Framework_TestCase +class DocBlockTest extends TestCase { /** * @covers ::__construct