diff --git a/tests/JsonResponseTest.php b/tests/JsonResponseTest.php index 7b11d43..83447d9 100644 --- a/tests/JsonResponseTest.php +++ b/tests/JsonResponseTest.php @@ -9,8 +9,9 @@ use FastD\Http\JsonResponse; +use PHPUnit\Framework\TestCase; -class JsonResponseTest extends PHPUnit_Framework_TestCase +class JsonResponseTest extends TestCase { public function testResponseJson() { diff --git a/tests/MessageTest.php b/tests/MessageTest.php index 93ae1fc..be0dd86 100644 --- a/tests/MessageTest.php +++ b/tests/MessageTest.php @@ -9,7 +9,10 @@ * @link https://www.github.com/janhuang * @link http://www.fast-d.cn/ */ -class MessageTest extends PHPUnit_Framework_TestCase + +use PHPUnit\Framework\TestCase; + +class MessageTest extends TestCase { /** * @var Message diff --git a/tests/PhpInputStreamTest.php b/tests/PhpInputStreamTest.php index 6124e7e..1e0ab29 100644 --- a/tests/PhpInputStreamTest.php +++ b/tests/PhpInputStreamTest.php @@ -9,7 +9,10 @@ * @link https://www.github.com/janhuang * @link http://www.fast-d.cn/ */ -class PhpInputStreamTest extends PHPUnit_Framework_TestCase + +use PHPUnit\Framework\TestCase; + +class PhpInputStreamTest extends TestCase { /** * @var \Psr\Http\Message\StreamInterface diff --git a/tests/RedirectResponseTest.php b/tests/RedirectResponseTest.php index f851290..60087ec 100644 --- a/tests/RedirectResponseTest.php +++ b/tests/RedirectResponseTest.php @@ -10,9 +10,9 @@ use FastD\Http\RedirectResponse; use FastD\Http\Response; +use PHPUnit\Framework\TestCase; - -class RedirectResponseTest extends PHPUnit_Framework_TestCase +class RedirectResponseTest extends TestCase { public function testResponseRedirect() { diff --git a/tests/RequestTest.php b/tests/RequestTest.php index 0171bd4..59e39e9 100644 --- a/tests/RequestTest.php +++ b/tests/RequestTest.php @@ -1,6 +1,7 @@ @@ -9,7 +10,7 @@ * @link https://www.github.com/janhuang * @link http://www.fast-d.cn/ */ -class RequestTest extends PHPUnit_Framework_TestCase +class RequestTest extends TestCase { public function testRequestUri() { diff --git a/tests/ResponseTest.php b/tests/ResponseTest.php index b082e7f..8777695 100755 --- a/tests/ResponseTest.php +++ b/tests/ResponseTest.php @@ -18,8 +18,9 @@ use FastD\Http\Cookie; use FastD\Http\Response; use Psr\Http\Message\ResponseInterface; +use PHPUnit\Framework\TestCase; -class ResponseTest extends \PHPUnit_Framework_TestCase +class ResponseTest extends TestCase { /** * @var Response @@ -96,4 +97,4 @@ public function testResponseCookie() $this->response->withCookie('age', 11); $this->outputResponse($this->response); } -} \ No newline at end of file +} diff --git a/tests/ServerRequestTest.php b/tests/ServerRequestTest.php index cd476b0..6e1b7e5 100644 --- a/tests/ServerRequestTest.php +++ b/tests/ServerRequestTest.php @@ -1,6 +1,7 @@