コード例 #1
0
 /**
  * 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());
     }
 }
コード例 #2
0
ファイル: FrameworkTest.php プロジェクト: TrueType/phpunit
 /**
  * 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());
     }
 }