aboutsummaryrefslogtreecommitdiff
path: root/private
diff options
context:
space:
mode:
authorKevin Hoerr <kjhoerr@protonmail.com>2017-09-13 00:50:17 -0400
committerGitHub <noreply@github.com>2017-09-13 00:50:17 -0400
commit70ef99429394e142905a3058efc4c83a42517b67 (patch)
tree585996beb1a7f4b6c1fd4cd7e24619dff146b816 /private
parentcf5f5aee4831bb8476f2d593276b6ef17c3edc58 (diff)
downloadaugust-offensive-70ef99429394e142905a3058efc4c83a42517b67.tar.gz
august-offensive-70ef99429394e142905a3058efc4c83a42517b67.tar.bz2
august-offensive-70ef99429394e142905a3058efc4c83a42517b67.zip
2 - Tests (#3)
* Move autoload to separate script, add two unit tests * Add integration tests for Controller * Add unit test for Output * Fix Model\Result-as-a-method error * encode JSON output as utf-8, and retrieve as assoc array * Ignore utf-8 definitions
Diffstat (limited to 'private')
-rw-r--r--private/View/Output.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/private/View/Output.php b/private/View/Output.php
index 8773e42..af9975e 100644
--- a/private/View/Output.php
+++ b/private/View/Output.php
@@ -15,11 +15,10 @@ class Output
* Formats the result into JSON.
*
* @param Model\Result $result The result to return to the client.
- * @param bool $prepare Whether to set the content type of the response (default true).
*
* @return string
*/
- public static function json (Model\Result $result, bool $prepare = true): string
+ public static function json (Model\Result $result): string
{
return json_encode(array(
"Result-Type" => $result->getResultType(),