*/
public function testPixelFormatRendering( $sourceFile, $pixelFormat, $samplingFactor ) {
global $wgUseImageMagick, $wgUseImageResize;
*/
public function testPixelFormatRendering( $sourceFile, $pixelFormat, $samplingFactor ) {
global $wgUseImageMagick, $wgUseImageResize;
$path = $thumb->getLocalCopyPath();
$this->assertTrue( is_string( $path ), "path returned for JPEG thumbnail for $fmtStr" );
$path = $thumb->getLocalCopyPath();
$this->assertTrue( is_string( $path ), "path returned for JPEG thumbnail for $fmtStr" );
- ];
- $retval = null;
- $output = wfShellExec( $cmd, $retval );
- $this->assertTrue( $retval === 0, "ImageMagick's identify command should return success" );
+ )->execute();
+ $this->assertSame( 0,
+ $result->getExitCode(),
+ "ImageMagick's identify command should return success"
+ );