mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
added exception test to view tests.
This commit is contained in:
parent
f266a1c6ca
commit
794e0e6d17
@ -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();
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user