From 7b04fd2c209e0f501022596af561c650e06c71df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Fabr=C3=A9gat?= Date: Mon, 8 Oct 2018 16:10:16 +0200 Subject: [PATCH] cleaning up tests --- tests/DebugResponseTest.php | 45 ------------------------------------- tests/ErrorResponseTest.php | 3 +++ 2 files changed, 3 insertions(+), 45 deletions(-) delete mode 100644 tests/DebugResponseTest.php diff --git a/tests/DebugResponseTest.php b/tests/DebugResponseTest.php deleted file mode 100644 index 161b622..0000000 --- a/tests/DebugResponseTest.php +++ /dev/null @@ -1,45 +0,0 @@ - -// Date: 03/05/2018 -// Time: 12:33 -// Project: Psr7Responses -// -declare(strict_types=1); -namespace CodeInc\Psr7Responses\Tests; -use CodeInc\Psr7Responses\DebugResponse; - - -/** - * Class DebugResponseText - * - * @uses DebugResponse - * @package CodeInc\Psr7Responses\Tests - * @author Joan Fabrégat - * @license MIT - * @link https://github.com/CodeIncHQ/Psr7Responses - */ -class DebugResponseTest extends AbstractResponseTestCase -{ - public function test():void - { - $response = new DebugResponse(["test" => 1]); - self::assertIsResponse($response); - self::assertResponseStatusCode(200, $response); - self::assertResponseHasBody($response); - } -} \ No newline at end of file diff --git a/tests/ErrorResponseTest.php b/tests/ErrorResponseTest.php index 3161465..2b7851f 100644 --- a/tests/ErrorResponseTest.php +++ b/tests/ErrorResponseTest.php @@ -36,6 +36,9 @@ */ class ErrorResponseTest extends AbstractResponseTestCase { + /** + * @throws \ReflectionException + */ public function test():void { $response = new ErrorResponse(new FakeException('Test'));