@@ -55,7 +55,7 @@ public function processShouldJustReturnTheResponseWhenEverythingIsAlright(): voi
55
55
$ middleware = new ErrorConversionMiddleware (
56
56
$ this ->responseFactory ,
57
57
new NoDebugInfo (),
58
- $ this ->statusCodeExtractor
58
+ $ this ->statusCodeExtractor ,
59
59
);
60
60
61
61
self ::assertSame ($ response , $ middleware ->process (new ServerRequest (), $ handler ));
@@ -75,7 +75,7 @@ public function processShouldJustReturnTheResponseWhenEverythingIsAlright(): voi
75
75
public function processShouldConvertTheExceptionIntoAnUnformattedResponseWithTheProblemDetails (
76
76
Throwable $ error ,
77
77
int $ expectedStatusCode ,
78
- array $ expectedData
78
+ array $ expectedData,
79
79
): void {
80
80
$ response = $ this ->handleProcessWithError (new ServerRequest (), $ error );
81
81
@@ -100,7 +100,7 @@ public function possibleConversions(): iterable
100
100
yield 'typed exceptions ' => [
101
101
new SampleProblem \Typed (
102
102
'Your current balance is 30, but that costs 50. ' ,
103
- StatusCodeInterface::STATUS_FORBIDDEN
103
+ StatusCodeInterface::STATUS_FORBIDDEN ,
104
104
),
105
105
StatusCodeInterface::STATUS_FORBIDDEN ,
106
106
[
@@ -113,7 +113,7 @@ public function possibleConversions(): iterable
113
113
yield 'titled exceptions ' => [
114
114
new SampleProblem \Titled (
115
115
'Your current balance is 30, but that costs 50. ' ,
116
- StatusCodeInterface::STATUS_FORBIDDEN
116
+ StatusCodeInterface::STATUS_FORBIDDEN ,
117
117
),
118
118
StatusCodeInterface::STATUS_FORBIDDEN ,
119
119
[
@@ -126,7 +126,7 @@ public function possibleConversions(): iterable
126
126
yield 'detailed exceptions ' => [
127
127
new SampleProblem \Detailed (
128
128
'Your current balance is 30, but that costs 50. ' ,
129
- StatusCodeInterface::STATUS_FORBIDDEN
129
+ StatusCodeInterface::STATUS_FORBIDDEN ,
130
130
),
131
131
StatusCodeInterface::STATUS_FORBIDDEN ,
132
132
[
@@ -141,7 +141,7 @@ public function possibleConversions(): iterable
141
141
yield 'typed+titled+detailed exceptions ' => [
142
142
new SampleProblem \All (
143
143
'Your current balance is 30, but that costs 50. ' ,
144
- StatusCodeInterface::STATUS_FORBIDDEN
144
+ StatusCodeInterface::STATUS_FORBIDDEN ,
145
145
),
146
146
StatusCodeInterface::STATUS_FORBIDDEN ,
147
147
[
@@ -229,12 +229,12 @@ public function processShouldModifyTheContentTypeHeaderForXml(): void
229
229
private function handleProcessWithError (
230
230
ServerRequestInterface $ request ,
231
231
Throwable $ error ,
232
- ?DebugInfoStrategy $ debugInfoStrategy = null
232
+ ?DebugInfoStrategy $ debugInfoStrategy = null ,
233
233
): ResponseInterface {
234
234
$ middleware = new ErrorConversionMiddleware (
235
235
$ this ->responseFactory ,
236
236
$ debugInfoStrategy ?? new NoDebugInfo (),
237
- $ this ->statusCodeExtractor
237
+ $ this ->statusCodeExtractor ,
238
238
);
239
239
240
240
$ handler = $ this ->createMock (RequestHandlerInterface::class);
0 commit comments