added exception test to view tests.

This commit is contained in:
Taylor Otwell 2011-07-13 23:56:44 -05:00
parent f266a1c6ca
commit 794e0e6d17

View File

@ -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();
}
}