예제 #1
0
 public function testRemoveStyle()
 {
     $textElement = new Output\TextElement('test TextElement');
     $style1 = new Mock\Matks\Vivian\Style\Style(1);
     $style2 = new Mock\Matks\Vivian\Style\Style(1);
     $textElement->addStyle($style1);
     $textElement->addStyle($style2);
     $textElement->removeStyle($style1);
     $this->array($textElement->getStyles())->isEqualTo(array($style2));
 }