public function testStyles() { Asset::$styles = array(); $s = 'h1 {font:26px;}'; Asset::addStyle($s); $expected = "\n" . '<style type="text/css">' . "\n" . $s . "\n" . '</style>' . "\n"; $this->expectOutputString($expected, Asset::styles()); }
/** * Add raw styling to page. * * @param string $style * @param string $params * * @return void */ public function addStyle($style, $params = 'header') { Asset::addStyle($style, $params); }