public function testNamedColorCode() { $color = new Color('black'); $this->assertSame('rgba(0, 0, 0, 1)', $color->formatted()); }
public function testUnknownColor() { $color = new Color('unknown'); $this->assertSame('rgba(255, 255, 255, 0)', $color->formatted()); }