Phalcon\Test\Proxy\Assets\Manager::addCss PHP Method

addCss() public method

public addCss ( $path, $local = true, $filter = true, $attributes = null )
    public function addCss($path, $local = true, $filter = true, $attributes = null)
    {
        return parent::addCss($path, $local, $filter, $attributes);
    }

Usage Example

Beispiel #1
0
 /**
  * outputCss - without implicitOutput tests
  *
  * @author Nikolaos Dimopoulos <*****@*****.**>
  * @since  2014-10-13
  */
 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);
     });
 }