/** * Marks a test as skipped if the ZIPArchive class is not available in the * PHP installation. * * @return void */ private function markAsSkippedForNoZipArchive() { try { $this->fixture->checkForZipArchive(); } catch (Exception $exception) { $this->markTestSkipped($exception->getMessage()); } }
/** * Marks a test as skipped if the ZIPArchive class is not available in the * PHP installation. * * @return void */ private function markAsSkippedForNoZipArchive() { try { $this->subject->checkForZipArchive(); } catch (Exception $exception) { self::markTestSkipped($exception->getMessage()); } }