public function testSetAndGetFormats()
{
$i = new Imagick(__DIR__ . '/../tmp/test.gif');
$i->setFormats(array('gif' => 'image/gif'));
$formats = $i->getFormats();
$this->greaterThan(0, $i->getNumberOfFormats());
$this->greaterThan(0, count($formats));
$this->assertTrue(is_array($formats));
}