@@ -139,17 +139,24 @@ public function requestProvider()
139139 'Content '
140140 );
141141
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+ ];
144150
145151 $ nyholmFactory = new Psr17Factory ();
146152 $ psr17Factory = new PsrHttpFactory ($ nyholmFactory , $ nyholmFactory , $ nyholmFactory , $ nyholmFactory );
147153 $ symfonyFactory = new HttpFoundationFactory ();
148154
149- return [
155+ return array_merge ( [
150156 [$ sfRequest , $ psr17Factory , $ symfonyFactory ],
151- [$ psr7Request , $ symfonyFactory , $ psr17Factory ],
152- ];
157+ ], array_map (function ($ psr7Request ) use ($ symfonyFactory , $ psr17Factory ) {
158+ return [$ psr7Request , $ symfonyFactory , $ psr17Factory ];
159+ }, $ psr7Requests ));
153160 }
154161
155162 /**
0 commit comments