Exemple #1
0
 /**
  * @covers Image\Canvas::imageColorAt
  */
 public function testImageColorAt()
 {
     $this->assertNotEmpty($this->object->openImage(dirname(__FILE__) . '/../image.gif'));
     //8 bit GIF image
     $this->assertEquals($this->object->imageColorAt(3, 3), 255);
     //Solid blue
     $this->assertNotEmpty($this->object->openImage(dirname(__FILE__) . '/../image.png'));
     //32 bit PNG image
     $this->assertEquals($this->object->imageColorAt(3, 3), 255);
     //Solid blue
 }