|
23 | 23 | use Psr\Http\Message\ResponseInterface; |
24 | 24 | use Psr\Http\Server\RequestHandlerInterface; |
25 | 25 |
|
26 | | -describe('Mezzio', function () { |
| 26 | +describe('Mezzio', function (): void { |
27 | 27 |
|
28 | 28 | given('logging', fn() : object => Double::instance([ |
29 | 29 | 'extends' => Logging::class, |
|
227 | 227 | $this->renderer |
228 | 228 | )); |
229 | 229 |
|
230 | | - describe('->process()', function () { |
| 230 | + describe('->process()', function (): void { |
231 | 231 |
|
232 | 232 | it('returns handle() when not enabled', function (): void { |
233 | 233 |
|
|
254 | 254 |
|
255 | 255 | }); |
256 | 256 |
|
257 | | - context('error', function () { |
| 257 | + context('error', function (): void { |
258 | 258 |
|
259 | | - it('non-xmlhttprequest: returns error page on display_errors = 0', function () { |
| 259 | + it('non-xmlhttprequest: returns error page on display_errors = 0', function (): void { |
260 | 260 |
|
261 | 261 | $config = $this->config; |
262 | 262 | $config['display-settings']['display_errors'] = 0; |
|
285 | 285 |
|
286 | 286 | }); |
287 | 287 |
|
288 | | - it('non-xmlhttprequest: shows error on display_errors = 1', function () { |
| 288 | + it('non-xmlhttprequest: shows error on display_errors = 1', function (): void { |
289 | 289 |
|
290 | 290 | $config = $this->config; |
291 | 291 | $config['display-settings']['display_errors'] = 1; |
|
312 | 312 |
|
313 | 313 | }); |
314 | 314 |
|
315 | | - it('passed renderer is null returns error message on display_errors = 0', function () { |
| 315 | + it('passed renderer is null returns error message on display_errors = 0', function (): void { |
316 | 316 |
|
317 | 317 | $config = $this->config; |
318 | 318 | $config['display-settings']['display_errors'] = 0; |
|
349 | 349 |
|
350 | 350 | }); |
351 | 351 |
|
352 | | - it('xmlhttprequest: returns error page on display_errors = 0', function () { |
| 352 | + it('xmlhttprequest: returns error page on display_errors = 0', function (): void { |
353 | 353 |
|
354 | 354 | $config = $this->config; |
355 | 355 | $config['display-settings']['display_errors'] = 0; |
|
386 | 386 |
|
387 | 387 | }); |
388 | 388 |
|
389 | | - it('xmlhttprequest: shows error on display_errors = 1', function () { |
| 389 | + it('xmlhttprequest: shows error on display_errors = 1', function (): void { |
390 | 390 |
|
391 | 391 | $config = $this->config; |
392 | 392 | $config['display-settings']['display_errors'] = 1; |
|
418 | 418 |
|
419 | 419 | }); |
420 | 420 |
|
421 | | - it('do not call logging->handleErrorException() if $e->getParam("exception") and has excluded exception match', function () { |
| 421 | + it('do not call logging->handleErrorException() if $e->getParam("exception") and has excluded exception match', function (): void { |
422 | 422 |
|
423 | 423 | $config = $this->config; |
424 | 424 | $config['display-settings']['exclude-exceptions'] = [ |
|
0 commit comments