-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #818 Support multiple cookies with API Gateway v2
- Loading branch information
Showing
10 changed files
with
240 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Bref\Test\Functional; | ||
|
||
use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts; | ||
use GuzzleHttp\Client; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class HttpApiTest extends TestCase | ||
{ | ||
use ArraySubsetAsserts; | ||
|
||
/** @var Client */ | ||
private $http; | ||
|
||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->http = new Client([ | ||
'base_uri' => 'https://3ipdsvypt1.execute-api.eu-west-1.amazonaws.com/', | ||
'http_errors' => false, | ||
]); | ||
} | ||
|
||
public function test supports multiple cookies with API Gateway format v2() | ||
{ | ||
$response = $this->http->request('GET'); | ||
|
||
self::assertSame(200, $response->getStatusCode()); | ||
self::assertEquals(['foo', 'bar'], $response->getHeader('Set-Cookie')); | ||
} | ||
} |
Oops, something went wrong.