From 6933531974c2944171c9eccaee01a5168c128e4a Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Sat, 20 Jan 2018 15:40:23 +0900 Subject: [PATCH] Feature: Migrate to PHPUnit 6.5+ #346 --- composer.json | 2 +- tests/PHPSA/IssuesCollectorTest.php | 2 +- tests/PHPSA/TestCase.php | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 96389867..b5a664e9 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ "regex-guard/regex-guard": "^1.1" }, "require-dev": { - "phpunit/phpunit": "^5.7", + "phpunit/phpunit": "^6.5", "squizlabs/php_codesniffer": "^3.0.2", "symfony/var-dumper": "^3.3" }, diff --git a/tests/PHPSA/IssuesCollectorTest.php b/tests/PHPSA/IssuesCollectorTest.php index 5fd8688e..6b5ca4f7 100644 --- a/tests/PHPSA/IssuesCollectorTest.php +++ b/tests/PHPSA/IssuesCollectorTest.php @@ -6,7 +6,7 @@ use PHPSA\IssuesCollector; use PHPSA\Issue; -class IssuesCollectorTest extends \PHPUnit_Framework_TestCase +class IssuesCollectorTest extends TestCase { /** * @covers \PHPSA\IssuesCollector::addIssue() diff --git a/tests/PHPSA/TestCase.php b/tests/PHPSA/TestCase.php index c0706798..6859178a 100644 --- a/tests/PHPSA/TestCase.php +++ b/tests/PHPSA/TestCase.php @@ -9,12 +9,11 @@ use PHPSA\Node\Scalar\Nil; use RuntimeException; use Symfony\Component\Console\Output\ConsoleOutput; -use PHPSA\Definition\ClassDefinition; use PHPSA\Application; use PhpParser\Node; use Webiny\Component\EventManager\EventManager; -class TestCase extends \PHPUnit_Framework_TestCase +class TestCase extends \PHPUnit\Framework\TestCase { /** * @return \PHPSA\Context