aboutsummaryrefslogtreecommitdiff
path: root/test/View/OutputTest.php
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@submelon.tech>2018-08-26 01:38:28 -0400
committerKevin Hoerr <kjhoerr@submelon.tech>2018-08-31 23:24:45 -0400
commit0965d62be00a7820f97284704dc71f37e661b412 (patch)
tree5a5c9d69062e24aa926eb30447c5ff27e0a65492 /test/View/OutputTest.php
parent1e3946f04b5b602d3869a285d897acb0ba2b3c35 (diff)
downloadaugust-offensive-0965d62be00a7820f97284704dc71f37e661b412.tar.gz
august-offensive-0965d62be00a7820f97284704dc71f37e661b412.tar.bz2
august-offensive-0965d62be00a7820f97284704dc71f37e661b412.zip
Begin migration to Rust; Add actix-web, diesel as main dependencies
Diffstat (limited to 'test/View/OutputTest.php')
-rw-r--r--test/View/OutputTest.php33
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