@@ -406,13 +406,15 @@ public function getErrorView($e)
406
406
private function executeScenarioWhereErrorViewThrowsWhileRenderingAndDebugIs ($ debug )
407
407
{
408
408
$ this ->viewFactory ->shouldReceive ('exists ' )->once ()->with ('errors::404 ' )->andReturn (true );
409
- $ this ->viewFactory ->shouldReceive ('make ' )->once ()->withAnyArgs ()->andThrow (new Exception (" Rendering this view throws an exception " ));
409
+ $ this ->viewFactory ->shouldReceive ('make ' )->once ()->withAnyArgs ()->andThrow (new Exception (' Rendering this view throws an exception ' ));
410
410
411
411
$ this ->config ->shouldReceive ('get ' )->with ('app.debug ' , null )->andReturn ($ debug );
412
412
413
413
$ handler = new class ($ this ->container ) extends Handler
414
414
{
415
- protected function registerErrorViewPaths () {}
415
+ protected function registerErrorViewPaths ()
416
+ {
417
+ }
416
418
417
419
public function getErrorView ($ e )
418
420
{
@@ -427,7 +429,6 @@ public function testItDoesNotCrashIfErrorViewThrowsWhileRenderingAndDebugFalse()
427
429
{
428
430
// When debug is false, the exception thrown while rendering the error view
429
431
// should not bubble as this may trigger an infinite loop.
430
-
431
432
}
432
433
433
434
public function testItDoesNotCrashIfErrorViewThrowsWhileRenderingAndDebugTrue ()
@@ -436,7 +437,7 @@ public function testItDoesNotCrashIfErrorViewThrowsWhileRenderingAndDebugTrue()
436
437
// the error view as the debug handler should handle this gracefully.
437
438
438
439
$ this ->expectException (\Exception::class);
439
- $ this ->expectExceptionMessage (" Rendering this view throws an exception " );
440
+ $ this ->expectExceptionMessage (' Rendering this view throws an exception ' );
440
441
$ this ->executeScenarioWhereErrorViewThrowsWhileRenderingAndDebugIs (true );
441
442
}
442
443
0 commit comments