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