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