diff --git a/src/Illuminate/Testing/TestView.php b/src/Illuminate/Testing/TestView.php index 137b41e6a992..ad64fb5b73a7 100644 --- a/src/Illuminate/Testing/TestView.php +++ b/src/Illuminate/Testing/TestView.php @@ -106,6 +106,16 @@ public function assertViewMissing($key) return $this; } + /** + * Assert that the view's rendered content is empty. + */ + public function assertViewEmpty() + { + PHPUnit::assertEmpty($this->rendered); + + return true; + } + /** * Assert that the given string is contained within the view. *