Skip to content

Commit

Permalink
Fix order when sending cookies and serverParams to SlimRequest.
Browse files Browse the repository at this point in the history
  • Loading branch information
maurobonfietti committed Oct 8, 2019
1 parent e8c2ecf commit fe139d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ protected function createRequest(
string $method,
string $path,
array $headers = ['HTTP_ACCEPT' => 'application/json'],
array $serverParams = [],
array $cookies = []
array $cookies = [],
array $serverParams = []
) {
$uri = new Uri('', '', 80, $path);
$handle = fopen('php://temp', 'w+');
Expand All @@ -70,6 +70,6 @@ protected function createRequest(
$h->addHeader($name, $value);
}

return new SlimRequest($method, $uri, $h, $serverParams, $cookies, $stream);
return new SlimRequest($method, $uri, $h, $cookies, $serverParams, $stream);
}
}

0 comments on commit fe139d4

Please sign in to comment.