Goutte\Tests\ClientTest::testConvertsGuzzleHeadersToArrays PHP Method

testConvertsGuzzleHeadersToArrays() public method

    public function testConvertsGuzzleHeadersToArrays()
    {
        $guzzle = $this->getGuzzle([new GuzzleResponse(200, array('Date' => 'Tue, 04 Jun 2013 13:22:41 GMT'))]);
        $client = new Client();
        $client->setClient($guzzle);
        $client->request('GET', 'http://www.example.com/');
        $response = $client->getResponse();
        $headers = $response->getHeaders();
        $this->assertInternalType('array', array_shift($headers), 'Header not converted from Guzzle\\Http\\Message\\Header to array');
    }