Commit 794e0e6d authored by Taylor Otwell's avatar Taylor Otwell

added exception test to view tests.

parent f266a1c6
......@@ -40,4 +40,12 @@ class ViewTest extends PHPUnit_Framework_TestCase {
$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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment