Phalcon\Test\Unit\Assets\ManagerTest::testAssetsManagerOutputCssWithoutImplicitOutputFromCollection PHP Method

testAssetsManagerOutputCssWithoutImplicitOutputFromCollection() public method

collection tests
Since: 2014-10-13
Author: Nikolaos Dimopoulos ([email protected])
    public function testAssetsManagerOutputCssWithoutImplicitOutputFromCollection()
    {
        $this->specify("The outputCss using a collection does not produce the correct result", function () {
            $assets = new Manager();
            $assets->collection('footer')->addCss('css/style1.css');
            $footer = $assets->collection('footer');
            $footer->addCss('css/style2.css');
            $expected = sprintf("%s\n%s\n", '<link rel="stylesheet" type="text/css" href="/css/style1.css" />', '<link rel="stylesheet" type="text/css" href="/css/style2.css" />');
            $assets->useImplicitOutput(false);
            expect($assets->outputCss('footer'))->equals($expected);
        });
    }