function testFromArray() { $model = Image_Color2_Model_Hex::fromArray(array(0xab, 0xcd, 0xef)); $this->assertTrue($model instanceof Image_Color2_Model); $this->assertSame('Image_Color2_Model_Hex', get_class($model)); $this->assertEquals('#abcdef', $model->getString()); }