From 70ef99429394e142905a3058efc4c83a42517b67 Mon Sep 17 00:00:00 2001 From: Kevin Hoerr Date: Wed, 13 Sep 2017 00:50:17 -0400 Subject: 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 --- private/View/Output.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'private/View') 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(), -- cgit