Skip to content

Commit e77371c

Browse files
committed
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
1 parent 7afc9d7 commit e77371c

25 files changed

+51
-27
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"mockery/mockery": "~0.8",
3030
"mikey179/vfsStream": "~1.2",
3131
"squizlabs/php_codesniffer": "^2.5",
32-
"phpunit/phpunit": "^5.0"
32+
"phpunit/phpunit": "^5.7"
3333
},
3434
"extra": {
3535
"branch-alias": {

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/component/ProjectCreationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
use phpDocumentor\Reflection\Php\ProjectFactory;
2020
use phpDocumentor\Reflection\Types\Object_;
2121
use phpDocumentor\Reflection\Types\String_;
22+
use PHPUnit\Framework\TestCase;
2223

2324
/**
2425
* Intergration tests to check the correct working of processing a file into a project.
2526
*
2627
* @coversNothing
2728
*/
28-
class ProjectCreationTest extends \PHPUnit_Framework_TestCase
29+
class ProjectCreationTest extends TestCase
2930
{
3031
/**
3132
* @var ProjectFactory

tests/component/ProjectNamespaceTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@
2626
use phpDocumentor\Reflection\Php\Factory\Property;
2727
use phpDocumentor\Reflection\Php\Factory\Trait_;
2828
use phpDocumentor\Reflection\Php\ProjectFactory;
29+
use PHPUnit\Framework\TestCase;
2930

3031
/**
3132
* Intergration tests to check the correct working of processing a namespace into a project.
3233
*
3334
* @coversNothing
3435
*/
35-
class ProjectNamespaceTest extends \PHPUnit_Framework_TestCase
36+
class ProjectNamespaceTest extends TestCase
3637
{
3738
/**
3839
* @var ProjectFactory

tests/unit/phpDocumentor/Reflection/File/LocalFileTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
*/
1212

1313
namespace phpDocumentor\Reflection\File;
14+
use PHPUnit\Framework\TestCase;
1415

1516
/**
1617
* @coversDefaultClass phpDocumentor\Reflection\File\LocalFile
1718
* @covers ::__construct
1819
*/
19-
class LocalFileTest extends \PHPUnit_Framework_TestCase
20+
class LocalFileTest extends TestCase
2021
{
2122
/**
2223
* @covers ::getContents

tests/unit/phpDocumentor/Reflection/NodeVisitor/ElementNameResolverTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222
use PhpParser\Node\Stmt\Function_;
2323
use PhpParser\Node\Stmt\Namespace_;
2424
use PhpParser\NodeTraverser;
25+
use PHPUnit\Framework\TestCase;
2526

2627
/**
2728
* Testcase for FqsenResolver
2829
* @coversDefaultClass phpDocumentor\Reflection\NodeVisitor\ElementNameResolver
2930
* @covers ::<private>
3031
*/
31-
class ElementNameResolverTest extends \PHPUnit_Framework_TestCase
32+
class ElementNameResolverTest extends TestCase
3233
{
3334
/**
3435
* @var ElementNameResolver

tests/unit/phpDocumentor/Reflection/Php/ArgumentTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212

1313
namespace phpDocumentor\Reflection\Php;
1414

15+
use PHPUnit\Framework\TestCase;
16+
1517
/**
1618
* Tests the functionality for the Argument class.
1719
* @coversDefaultClass phpDocumentor\Reflection\Php\Argument
1820
*/
19-
class ArgumentTest extends \PHPUnit_Framework_TestCase
21+
class ArgumentTest extends TestCase
2022
{
2123

2224
/**

tests/unit/phpDocumentor/Reflection/Php/Class_Test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
use phpDocumentor\Reflection\DocBlock;
1717
use phpDocumentor\Reflection\Fqsen;
1818
use phpDocumentor\Reflection\Location;
19+
use PHPUnit\Framework\TestCase;
1920

2021
/**
2122
* Tests the functionality for the Class_ class.
2223
* @coversDefaultClass phpDocumentor\Reflection\Php\Class_
2324
*/
2425
// @codingStandardsIgnoreStart
25-
class Class_Test extends \PHPUnit_Framework_TestCase
26+
class Class_Test extends TestCase
2627
// @codingStandardsIgnoreEnd
2728
{
2829
/**

tests/unit/phpDocumentor/Reflection/Php/ConstantTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414

1515
use phpDocumentor\Reflection\DocBlock;
1616
use phpDocumentor\Reflection\Fqsen;
17+
use PHPUnit\Framework\TestCase;
1718

1819
/**
1920
* Tests the functionality for the Constant class.
2021
* @coversDefaultClass phpDocumentor\Reflection\Php\Constant
2122
*/
22-
class ConstantTest extends \PHPUnit_Framework_TestCase
23+
class ConstantTest extends TestCase
2324
{
2425
/** @var Constant $fixture */
2526
protected $fixture;

tests/unit/phpDocumentor/Reflection/Php/Factory/ClassConstantIteratorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
use PhpParser\Node\Stmt\ClassConst;
2121
use PhpParser\Node\Stmt\Property as PropertyNode;
2222
use PhpParser\Node\Stmt\PropertyProperty;
23+
use PHPUnit\Framework\TestCase;
2324

2425
/**
2526
* Class PropertyIteratorTest
2627
* @coversDefaultClass \phpDocumentor\Reflection\Php\Factory\ClassConstantIterator
2728
*/
28-
class ClassConstantIteratorTest extends \PHPUnit_Framework_TestCase
29+
class ClassConstantIteratorTest extends TestCase
2930
{
3031
/**
3132
* @covers ::current()

0 commit comments

Comments
 (0)