diff options
Diffstat (limited to 'test/View')
| -rw-r--r-- | test/View/OutputTest.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/test/View/OutputTest.php b/test/View/OutputTest.php deleted file mode 100644 index f687ee8..0000000 --- a/test/View/OutputTest.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace AugustOffensive\View; - -use PHPUnit\Framework\TestCase; -use AugustOffensive\Model; - -/** - * @covers Output - */ -final class OutputTest extends \PHPUnit\Framework\TestCase -{ - public function testJSONOutput() - { - $resultType = "JSON_ENCODED"; - $result = array("json", "1.6"); - $resultObject = new Model\Result($resultType, $result); - - // If JSON is properly formatted, we can decode and test the values - $output = json_decode(Output::json($resultObject), true); - - $this->assertEquals( - $resultType, - $output["Result-Type"] - ); - $this->assertEquals( - $result, - $output["Content"] - ); - } -}
\ No newline at end of file |
