protected function requireGraphicsLibrary() { if (!EscposImage::isGdLoaded() && !EscposImage::isImagickLoaded()) { // If the test is about to do something which requires a library, // something must throw an exception. $this->setExpectedException('Exception'); } }
protected function requireGraphicsLibrary() { if (!EscposImage::isGdLoaded() && !EscposImage::isImagickLoaded()) { $this->markTestSkipped("This test requires a graphics library."); } }