public function addStyle(Style $style) { if (!$this->styleSet) { $this->styleSet = new DefaultStyleSet(); } $this->styleSet->add($style); return $this; }
public function testAddStyle() { $style = Style::tag('custom'); $this->config->addStyle($style); $styleSet = new DefaultStyleSet(); $styleSet->add($style); $this->assertEquals($styleSet, $this->config->getStyleSet()); }