Joli\GifExceptionBundle\Tests\FunctionalTest::getImage PHP Method

getImage() private method

private getImage ( $content ) : DOMElement
$content
return DOMElement
    private function getImage($content)
    {
        $dom = new \DOMDocument();
        $dom->loadHTML($content);
        $xpath = new \DomXpath($dom);
        return $xpath->query('//img[@alt="Exception detected!"]')->item(0);
    }