示例#1
0
 protected function checkRequirements()
 {
     parent::checkRequirements();
     $annotations = $this->getAnnotations();
     collect($this->getAnnotations())->each(function ($location) {
         if (!isset($location['requires'])) {
             return;
         }
         if (in_array('!Travis', $location['requires']) && getenv('TRAVIS') == true) {
             $this->markTestSkipped('This test does not run on Travis.');
         }
     });
 }