Fireguard\Report\Exporters\AbstractExporterTest::testCompressHtmlAndJsStrings PHP Méthode

testCompressHtmlAndJsStrings() public méthode

    public function testCompressHtmlAndJsStrings()
    {
        // Test Remove Space
        $html = '<h1>Teste</h1>' . PHP_EOL . '<span>Teste</span>';
        $this->assertEquals('<h1>Teste</h1> <span>Teste</span>', $this->exporter->compress($html));
        // Test Remove Coments
        $comment = '/**' . PHP_EOL . '* Compress html e js removed comments e break lines' . PHP_EOL;
        $comment .= '* @param $buffer' . PHP_EOL . '* @return mixed' . PHP_EOL . '*/ function test()';
        $this->assertEquals('function test()', $this->exporter->compress($comment));
    }