예제 #1
0
파일: RgbTest.php 프로젝트: sokil/php-image
 public function testFromHex()
 {
     $this->assertEquals(array(239, 239, 239, 0), Rgb::fromHex('#efefef')->toArray());
     $this->assertEquals(array(239, 239, 239, 0), Rgb::fromHex('efefef')->toArray());
     $this->assertEquals(array(239, 239, 239, 64), Rgb::fromHex('#80efefef')->toArray());
     $this->assertEquals(array(239, 239, 239, 64), Rgb::fromHex('80efefef')->toArray());
 }