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

outputCss() public method

public outputCss ( $collectionName = null )
    public function outputCss($collectionName = null)
    {
        return parent::outputCss($collectionName);
    }

Usage Example

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