From 794e0e6d17a423f605b76d0b8a5b26d1d9793986 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 13 Jul 2011 23:56:44 -0500 Subject: [PATCH] added exception test to view tests. --- tests/suite/ViewTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/suite/ViewTest.php b/tests/suite/ViewTest.php index 174c58a1..080fb3fe 100644 --- a/tests/suite/ViewTest.php +++ b/tests/suite/ViewTest.php @@ -40,4 +40,12 @@ public function testGetMethodReturnsStringContentOfView() $this->assertTrue(is_string(System\View::make('home/index')->get())); } + /** + * @expectedException Exception + */ + public function testExceptionIsThrownWhenViewDoesntExist() + { + System\View::make('doesnt-exist')->get(); + } + } \ No newline at end of file