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

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

    public function parseHeaderThrowsExceptionIfColonIsMissing()
    {
        $this->setExpectedException('Exception', "Header without colon found: Line without colon");
        $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/', 'Line without colon']);
    }