getNumberOfFormats() public method

Get the number of supported formats of Imagick.
public getNumberOfFormats ( ) : integer
return integer
コード例 #1
0
ファイル: ImagickTest.php プロジェクト: nicksagona/PopPHP
 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));
 }