AwsInspector\Tests\Helper\CurlTest::getResponseBodyReturnsAlsoTheRestOfInvalidHeaderData PHP Метод

getResponseBodyReturnsAlsoTheRestOfInvalidHeaderData() публичный Метод

    public function getResponseBodyReturnsAlsoTheRestOfInvalidHeaderData()
    {
        $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>', 'StackFormationHTTP/1.1 301 Moved Permanently', 'Location: http://www.google.com/']);
        $this->assertContains('StackFormation', $curl->getResponseBody());
    }