addStyles() public méthode

Adds multiple styles to the style set.
See also: StyleSet::merge()
public addStyles ( array $styles ) : static
$styles array The styles to add.
Résultat static The current instance.
 public function testRemoveStyle()
 {
     $style1 = Style::tag('custom1');
     $style2 = Style::tag('custom2');
     $this->config->addStyles(array($style1, $style2));
     $this->config->removeStyle('custom1');
     $styleSet = new DefaultStyleSet();
     $styleSet->add($style2);
     $this->assertEquals($styleSet, $this->config->getStyleSet());
 }