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("", (string) $color);
 }
Exemple #2
0
 public function testFluency()
 {
     $this->assertSame($this->object, $this->object->setFont(Fonts::BLACK)->setBackground(Backgrounds::BLACK)->setFlags(Flags::RESET)->setStyles(Styles::ALL, true));
 }