$psr7Requests =
[ (new Psr7Request('POST', 'http://tnyholm.se/foo/?bar=biz'
)) ->
withQueryParams(['bar' => 'biz'
]),
new Psr7Request('GET', 'https://hey-octave.com/'
),
new Psr7Request('GET', 'https://hey-octave.com:443/'
),
new Psr7Request('GET', 'https://hey-octave.com:4242/'
),
new Psr7Request('GET', 'http://hey-octave.com:80/'
),
];
$nyholmFactory =
new Psr17Factory();
$psr17Factory =
new PsrHttpFactory($nyholmFactory,
$nyholmFactory,
$nyholmFactory,
$nyholmFactory);
$symfonyFactory =
new HttpFoundationFactory();
return array_merge([ [$sfRequest,
$psr17Factory,
$symfonyFactory],
],
array_map(function D
$psr7Request) use ($symfonyFactory,
$psr17Factory) { return [$psr7Request,
$symfonyFactory,
$psr17Factory];
},
$psr7Requests));
} /**
* @dataProvider responseProvider
*/