AwsInspector\Tests\Helper\CurlTest::getResponseHeadersReturnsExpectedHeaderArrayWithNestedArray PHP Method

getResponseHeadersReturnsExpectedHeaderArrayWithNestedArray() public method

    public function getResponseHeadersReturnsExpectedHeaderArrayWithNestedArray()
    {
        $curl = $this->getCurlObject(['<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">', '<TITLE>301 Moved</TITLE></HEAD><BODY>', '<H1>301 Moved</H1>', 'The document has moved', '<A HREF="http://www.google.com/">here</A>.', '</BODY></HTML>', 'HTTP/1.1 301 Moved Permanently', 'Location: http://www.google.com/', 'X-StackFormation: Test', 'X-StackFormation: Test2', 'X-StackFormation: Test3']);
        $this->assertSame(['X-StackFormation' => ['Test3', 'Test2', 'Test'], 'Location' => 'http://www.google.com/'], $curl->getResponseHeaders());
    }