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