/** * 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); }); }