function testConstruct_FromColorModel_Hsv() { $model = Image_Color2_Model_Hsv::fromArray(array(210, 0.28, 0.9399999999999999, 'type' => 'hsv')); $color = new Image_Color2($model); $this->assertNotNull($color); $this->assertEquals(array(173, 206, 240, 'type' => 'rgb'), $color->getRgb()); }
function testGetString() { $model = Image_Color2_Model_Hsv::fromArray(array(210, 0.28, 0.9399999999999999)); $this->assertEquals('210, 28%, 94%', $model->getString()); }