We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dda86d commit 11613d6Copy full SHA for 11613d6
1 file changed
tests/system/Debug/ExceptionHandlerTest.php
@@ -70,6 +70,21 @@ public function testDetermineViewsRuntimeExceptionCode404(): void
70
$this->assertSame('error_404.php', $viewFile);
71
}
72
73
+ public function testDetermineViewsDisplayErrorsOffRuntimeException(): void
74
+ {
75
+ ini_set('display_errors', '0');
76
+
77
+ $determineView = $this->getPrivateMethodInvoker($this->handler, 'determineView');
78
79
+ $exception = new RuntimeException('Exception');
80
+ $templatePath = APPPATH . 'Views/errors/html';
81
+ $viewFile = $determineView($exception, $templatePath);
82
83
+ $this->assertSame('production.php', $viewFile);
84
85
+ ini_set('display_errors', '1');
86
+ }
87
88
public function testCollectVars(): void
89
{
90
$collectVars = $this->getPrivateMethodInvoker($this->handler, 'collectVars');
0 commit comments