From a47df681bf4b72cb11e38f7ee7c285406ca934e0 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 18 Oct 2023 16:31:51 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/Foundation/FoundationExceptionsHandlerTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/Foundation/FoundationExceptionsHandlerTest.php b/tests/Foundation/FoundationExceptionsHandlerTest.php index 93c7cda2443a..ee4d42da088b 100644 --- a/tests/Foundation/FoundationExceptionsHandlerTest.php +++ b/tests/Foundation/FoundationExceptionsHandlerTest.php @@ -406,13 +406,15 @@ public function getErrorView($e) private function executeScenarioWhereErrorViewThrowsWhileRenderingAndDebugIs($debug) { $this->viewFactory->shouldReceive('exists')->once()->with('errors::404')->andReturn(true); - $this->viewFactory->shouldReceive('make')->once()->withAnyArgs()->andThrow(new Exception("Rendering this view throws an exception")); + $this->viewFactory->shouldReceive('make')->once()->withAnyArgs()->andThrow(new Exception('Rendering this view throws an exception')); $this->config->shouldReceive('get')->with('app.debug', null)->andReturn($debug); $handler = new class($this->container) extends Handler { - protected function registerErrorViewPaths() {} + protected function registerErrorViewPaths() + { + } public function getErrorView($e) { @@ -427,7 +429,6 @@ public function testItDoesNotCrashIfErrorViewThrowsWhileRenderingAndDebugFalse() { // When debug is false, the exception thrown while rendering the error view // should not bubble as this may trigger an infinite loop. - } public function testItDoesNotCrashIfErrorViewThrowsWhileRenderingAndDebugTrue() @@ -436,7 +437,7 @@ public function testItDoesNotCrashIfErrorViewThrowsWhileRenderingAndDebugTrue() // the error view as the debug handler should handle this gracefully. $this->expectException(\Exception::class); - $this->expectExceptionMessage("Rendering this view throws an exception"); + $this->expectExceptionMessage('Rendering this view throws an exception'); $this->executeScenarioWhereErrorViewThrowsWhileRenderingAndDebugIs(true); }