From 32454e960bde2931c060a7ea743c6c29496c7646 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Wed, 17 May 2017 22:58:39 -0500 Subject: [PATCH] Upgrade to PHPUnit 6 --- composer.json | 5 +++-- phpunit.xml | 14 -------------- phpunit.xml.dist | 31 +++++++++++++++++++++++++++++++ test/DriverTest.php | 3 ++- test/HandleTest.php | 3 ++- 5 files changed, 38 insertions(+), 18 deletions(-) delete mode 100644 phpunit.xml create mode 100644 phpunit.xml.dist diff --git a/composer.json b/composer.json index 4c95a2f..bf041a6 100644 --- a/composer.json +++ b/composer.json @@ -31,9 +31,10 @@ }, "minimum-stability": "dev", "require-dev": { + "amphp/phpunit-util": "dev-master", "amphp/parallel": "dev-master as 0.1", - "phpunit/phpunit": "^5.0", - "friendsofphp/php-cs-fixer": "~1.9" + "phpunit/phpunit": "^6.0", + "friendsofphp/php-cs-fixer": "^2.3" }, "suggest": { "amphp/parallel": "Provides async file access without the eio or uv extension." diff --git a/phpunit.xml b/phpunit.xml deleted file mode 100644 index 15defc4..0000000 --- a/phpunit.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - ./test - - - - - ./lib - - - diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..69095b7 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,31 @@ + + + + + test + + + + + lib + + + + + + + + + diff --git a/test/DriverTest.php b/test/DriverTest.php index 6171c03..aab0dec 100644 --- a/test/DriverTest.php +++ b/test/DriverTest.php @@ -3,8 +3,9 @@ namespace Amp\File\Test; use Amp\File as file; +use Amp\PHPUnit\TestCase; -abstract class DriverTest extends \PHPUnit_Framework_TestCase { +abstract class DriverTest extends TestCase { private static $fixtureId; private static $umask; diff --git a/test/HandleTest.php b/test/HandleTest.php index ec4465c..517c5b8 100644 --- a/test/HandleTest.php +++ b/test/HandleTest.php @@ -3,8 +3,9 @@ namespace Amp\File\Test; use Amp\File as file; +use Amp\PHPUnit\TestCase; -abstract class HandleTest extends \PHPUnit_Framework_TestCase { +abstract class HandleTest extends TestCase { public static function setUpBeforeClass() { Fixture::init(); }