public function testDefaultConstructor() { $color = new Color(); $this->assertSame(Fonts::KEEP, $color->getFont()); $this->assertSame(Backgrounds::KEEP, $color->getBackground()); $this->assertSame(Flags::NONE, $color->getFlags()); $this->assertSame(array(), $color->getStyles()); $this->assertSame("[m", (string) $color); }
/** * Tests setting and getting of backgrounds. * * @param int $backgorund * @param string $sequence * * @return void * @dataProvider setGetBackgroundDataProvider */ public function testSetGetBackground($backgorund, $sequence) { $this->object->setBackground($backgorund); $this->assertSame($backgorund, $this->object->getBackground()); $this->assertSame($sequence, (string) $this->object); }