File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
use function trigger_error ;
21
21
22
- use const E_USER_ERROR ;
22
+ use const E_USER_WARNING ;
23
23
24
24
class ProblemDetailsMiddlewareTest extends TestCase
25
25
{
@@ -107,15 +107,15 @@ public function testMiddlewareRegistersErrorHandlerToConvertErrorsToProblemDetai
107
107
->method ('handle ' )
108
108
->with ($ this ->request )
109
109
->willReturnCallback (static function (): void {
110
- trigger_error ('Triggered error! ' , E_USER_ERROR );
110
+ trigger_error ('Triggered error! ' , E_USER_WARNING );
111
111
});
112
112
113
113
$ expected = $ this ->createMock (ResponseInterface::class);
114
114
$ this ->responseFactory
115
115
->method ('createResponseFromThrowable ' )
116
116
->with ($ this ->request , self ::callback (function ($ e ): bool {
117
117
self ::assertInstanceOf (ErrorException::class, $ e );
118
- self ::assertEquals (E_USER_ERROR , $ e ->getSeverity ());
118
+ self ::assertEquals (E_USER_WARNING , $ e ->getSeverity ());
119
119
self ::assertEquals ('Triggered error! ' , $ e ->getMessage ());
120
120
return true ;
121
121
}))
You can’t perform that action at this time.
0 commit comments