Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a47df68

Browse files
committed
Apply fixes from StyleCI
1 parent dda4e0f commit a47df68

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/Foundation/FoundationExceptionsHandlerTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,15 @@ public function getErrorView($e)
406406
private function executeScenarioWhereErrorViewThrowsWhileRenderingAndDebugIs($debug)
407407
{
408408
$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'));
410410

411411
$this->config->shouldReceive('get')->with('app.debug', null)->andReturn($debug);
412412

413413
$handler = new class($this->container) extends Handler
414414
{
415-
protected function registerErrorViewPaths() {}
415+
protected function registerErrorViewPaths()
416+
{
417+
}
416418

417419
public function getErrorView($e)
418420
{
@@ -427,7 +429,6 @@ public function testItDoesNotCrashIfErrorViewThrowsWhileRenderingAndDebugFalse()
427429
{
428430
// When debug is false, the exception thrown while rendering the error view
429431
// should not bubble as this may trigger an infinite loop.
430-
431432
}
432433

433434
public function testItDoesNotCrashIfErrorViewThrowsWhileRenderingAndDebugTrue()
@@ -436,7 +437,7 @@ public function testItDoesNotCrashIfErrorViewThrowsWhileRenderingAndDebugTrue()
436437
// the error view as the debug handler should handle this gracefully.
437438

438439
$this->expectException(\Exception::class);
439-
$this->expectExceptionMessage("Rendering this view throws an exception");
440+
$this->expectExceptionMessage('Rendering this view throws an exception');
440441
$this->executeScenarioWhereErrorViewThrowsWhileRenderingAndDebugIs(true);
441442
}
442443

0 commit comments

Comments
 (0)