public function testSetBackgroundColor() { $textElement = new Output\TextElement('test TextElement'); $color1 = new Mock\Matks\Vivian\Color\BackgroundColor(43); $textElement->setBackgroundColor($color1); $this->object($textElement->getBackgroundColor())->isEqualTo($color1); $color2 = new Mock\Matks\Vivian\Color\BackgroundColor(47); $textElement->setBackgroundColor($color2); $this->object($textElement->getBackgroundColor())->isEqualTo($color2); }