@@ -139,17 +139,24 @@ public function requestProvider()
139
139
'Content '
140
140
);
141
141
142
- $ psr7Request = (new Psr7Request ('POST ' , 'http://tnyholm.se/foo/?bar=biz ' ))
143
- ->withQueryParams (['bar ' => 'biz ' ]);
142
+ $ psr7Requests = [
143
+ (new Psr7Request ('POST ' , 'http://tnyholm.se/foo/?bar=biz ' ))
144
+ ->withQueryParams (['bar ' => 'biz ' ]),
145
+ new Psr7Request ('GET ' , 'https://hey-octave.com/ ' ),
146
+ new Psr7Request ('GET ' , 'https://hey-octave.com:443/ ' ),
147
+ new Psr7Request ('GET ' , 'https://hey-octave.com:4242/ ' ),
148
+ new Psr7Request ('GET ' , 'http://hey-octave.com:80/ ' ),
149
+ ];
144
150
145
151
$ nyholmFactory = new Psr17Factory ();
146
152
$ psr17Factory = new PsrHttpFactory ($ nyholmFactory , $ nyholmFactory , $ nyholmFactory , $ nyholmFactory );
147
153
$ symfonyFactory = new HttpFoundationFactory ();
148
154
149
- return [
155
+ return array_merge ( [
150
156
[$ sfRequest , $ psr17Factory , $ symfonyFactory ],
151
- [$ psr7Request , $ symfonyFactory , $ psr17Factory ],
152
- ];
157
+ ], array_map (function ($ psr7Request ) use ($ symfonyFactory , $ psr17Factory ) {
158
+ return [$ psr7Request , $ symfonyFactory , $ psr17Factory ];
159
+ }, $ psr7Requests ));
153
160
}
154
161
155
162
/**
0 commit comments