public function testHsbToHex() { $hex = Convert::toHex(new Hsb(180, 50, 50)); $this->assertInstanceOf('Pop\\Color\\Space\\Hex', $hex); $this->assertEquals('#408040', (string) $hex); }