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 getting and setting of fonts. * * @param int $font * @param string $sequence * * @return void * @dataProvider setGetFontDataProvider */ public function testSetGetFont($font, $sequence) { $this->object->setFont($font); $this->assertSame($font, $this->object->getFont()); $this->assertSame($sequence, (string) $this->object); }