/** * Removes a style from the style set. * * @param string $tag The tag of the style to remove. * * @return static The current instance. * * @see StyleSet::remove() */ public function removeStyle($tag) { if ($this->styleSet) { $this->styleSet->remove($tag); } return $this; }
public function testRemoveIgnoresNonExistingTag() { $styleSet = new StyleSet(); $styleSet->remove('style'); $this->assertSame(array(), $styleSet->toArray()); }