예제 #1
0
파일: ColorTest.php 프로젝트: phower/image
 public function testToHexMethodReturnsColorAsAnHexadecimalCode()
 {
     $color = new Color(255, 204, 0);
     $this->assertEquals('#ffcc00', $color->toHex());
     $color = new Color(0, 0, 0);
     $this->assertEquals('#000000', $color->toHex());
 }