From 3918ce4eb760e5b4c2bb1fa3d3f45b235c502a36 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Mon, 11 Jan 2016 10:42:34 -0500 Subject: [PATCH] Add more test coverage, and update build.xml --- build.xml | 355 ++++++++++++-------------------- src/Aviat/Ion/View/HttpView.php | 1 + tests/Ion/View/HttpViewTest.php | 6 + 3 files changed, 138 insertions(+), 224 deletions(-) diff --git a/build.xml b/build.xml index dfcc88e3..0c096451 100644 --- a/build.xml +++ b/build.xml @@ -1,251 +1,158 @@ - - - - - - - - - - + + + + + + + + + - + + + + - + + + + + + + + + + + - + + + + + + + + - + + + + + + + + - + + + - + + + - - - - - - - - - - - - + + + + - - - - - - - - + + - - - - - - - - + + + + + + - - - + + - - - - + + + + + + + + + + - - - - - + + - - + + + + + + + - - - - - - + + - - + + + + - - - - - - - - - - + + - - + + + + + + - - - - - - - + + - - + + + + + - - - - - - - - + + - - + + + + + + - - - - - - - - - - + + - - + + - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + \ No newline at end of file diff --git a/src/Aviat/Ion/View/HttpView.php b/src/Aviat/Ion/View/HttpView.php index 8f8abbf0..ce991437 100644 --- a/src/Aviat/Ion/View/HttpView.php +++ b/src/Aviat/Ion/View/HttpView.php @@ -60,6 +60,7 @@ class HttpView extends BaseView { /** * Send the appropriate response * + * @codeCoverageIgnore * @return void */ protected function output() diff --git a/tests/Ion/View/HttpViewTest.php b/tests/Ion/View/HttpViewTest.php index 9eebdda9..8f24c66b 100644 --- a/tests/Ion/View/HttpViewTest.php +++ b/tests/Ion/View/HttpViewTest.php @@ -51,4 +51,10 @@ class HttpViewTest extends AnimeClient_TestCase { $this->assertEquals($content->getCharset(), 'utf-8'); $this->assertEquals($content->get(), $this->friend->getOutput()); } + + public function testSetStatusCode() + { + $this->view->setStatusCode(404); + $this->assertEquals(404, $this->friend->response->status->getCode()); + } } \ No newline at end of file