/** * Test Callable Content throw any Exception */ public function testSetInvalidCallableContent() { $layout = new Layout(); $layout->setContent(function () { throw new \Exception('foo'); }); $this->assertEquals('foo', $layout->getContent()); }