setARGB('FFFF0000'); self::assertEquals('FFFF0000', $color->getARGB()); self::assertEquals('FF0000', $color->getRGB()); $color->setARGB(''); self::assertEquals(Color::COLOR_BLACK, $color->getARGB()); self::assertEquals('000000', $color->getRGB()); $color->setARGB('FFFF0000'); self::assertEquals('FFFF0000', $color->getARGB()); self::assertEquals('FF0000', $color->getRGB()); $color->setRGB(''); self::assertEquals(Color::COLOR_BLACK, $color->getARGB()); self::assertEquals('000000', $color->getRGB()); } }