Phalcon\Test\Unit\Assets\ManagerTest::testAssetsManagerOutputCssWithoutImplicitOutput PHP Метод

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

outputCss - without implicitOutput tests
С версии: 2014-10-13
Автор: Nikolaos Dimopoulos ([email protected])
    public function testAssetsManagerOutputCssWithoutImplicitOutput()
    {
        $this->specify("The outputCss with implicitOutput does not produce the correct result", function () {
            $assets = new Manager();
            $assets->addCss('css/style1.css');
            $assets->addCss('css/style2.css');
            $assets->addResource(new Css('/css/style.css', false));
            $expected = sprintf("%s\n%s\n%s\n", '<link rel="stylesheet" type="text/css" href="/css/style1.css" />', '<link rel="stylesheet" type="text/css" href="/css/style2.css" />', '<link rel="stylesheet" type="text/css" href="/css/style.css" />');
            $assets->useImplicitOutput(false);
            expect($assets->outputCss())->equals($expected);
        });
    }