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 of flags. * * @param mixed $flags * @param int $expectedFlags * @param string $sequence * * @return void * @dataProvider setGetFlagsDataProvider */ public function testSetGetFlags($flags, $expectedFlags, $sequence) { $this->object->setFlags($flags); $this->assertSame($expectedFlags, $this->object->getFlags()); $this->assertSame($sequence, (string) $this->object); }