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 --- test/View/OutputTest.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/View/OutputTest.php (limited to 'test/View/OutputTest.php') diff --git a/test/View/OutputTest.php b/test/View/OutputTest.php new file mode 100644 index 0000000..f687ee8 --- /dev/null +++ b/test/View/OutputTest.php @@ -0,0 +1,33 @@ +assertEquals( + $resultType, + $output["Result-Type"] + ); + $this->assertEquals( + $result, + $output["Content"] + ); + } +} \ No newline at end of file -- cgit