public function ClientTest::testUsesCookiesWithCustomPort in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/fabpot/goutte/Goutte/Tests/ClientTest.php \Goutte\Tests\ClientTest::testUsesCookiesWithCustomPort()
File
- vendor/
fabpot/ goutte/ Goutte/ Tests/ ClientTest.php, line 117
Class
- ClientTest
- Goutte Client Test.
Namespace
Goutte\TestsCode
public function testUsesCookiesWithCustomPort() {
$guzzle = $this
->getGuzzle();
$client = new Client();
$client
->setClient($guzzle);
$client
->getCookieJar()
->set(new Cookie('test', '123'));
$client
->request('GET', 'http://www.example.com:8000/');
$request = end($this->history)['request'];
$this
->assertEquals('test=123', $request
->getHeaderLine('Cookie'));
}