public function testHasImageIdentify() { $this->assertTrue(ezcBaseFeatures::hasImageIdentify()); }
public function testHasImageIdentify() { $this->assertEquals(true, ezcBaseFeatures::hasImageIdentify()); }
/** * Checks the availability of ImageMagick on the system. * * @return bool */ protected function checkImagemagick() { if (!isset($this->options['binary'])) { switch (PHP_OS) { case 'Linux': case 'Unix': case 'FreeBSD': case 'MacOS': case 'Darwin': case 'SunOS': $this->binary = 'identify'; break; case 'Windows': case 'WINNT': case 'WIN32': $this->binary = 'identify.exe'; break; default: throw new ezcImageAnalyzerInvalidHandlerException('ezcImageAnalyzerImagemagickHandler'); break; } } else { $this->binary = $this->options['binary']; } return ezcBaseFeatures::hasImageIdentify(); }