getText() throw $e; } catch (ConverterNotOperationalException $e) { // (SystemRequirementsNotMetException is also a ConverterNotOperationalException) // this is ok. return true; } return true; } public function testWithNice() { $source = self::getImagePath('test.png'); $options = [ 'use-nice' => true, 'lossless' => true, ]; $this->assertTrue(self::tryThis($this, $source, $options)); } }