Jarves\Tests\Jarves\PageResponseTest::testCssAssetsCompressed PHP Method

testCssAssetsCompressed() public method

    public function testCssAssetsCompressed()
    {
        $response = $this->getPageResponse();
        $response->addCssFile('@TestBundle/page-response-test/style1.css');
        $response->addCss("body {font-size: 12px;}");
        $response->addCssFile('@TestBundle/page-response-test/style2.css');
        $response->setResourceCompression(true);
        $assetsTags = $response->getAssetTags();
        $expected = <<<EOF
<style type="text/css">
body {font-size: 12px;}
</style>
<link rel="stylesheet" type="text/css" href="cache/compressed-css/([a-z0-9]{32}).css\\?c=([a-z0-9]{6})" >
EOF;
        $this->assertRegExp("#{$expected}#", $assetsTags['cssTags']);
    }