checkRequirements(); } /** * Check tests requirements. * @return void */ protected function checkRequirements() { $annotations = Test::parseTestMethodAnnotations( static::class, $this->getName() ); $requires = []; if (isset($annotations['class']['requires'])) { $requires = array_merge($requires, $annotations['class']['requires']); } if (isset($annotations['method']['requires'])) { $requires = array_merge($requires, $annotations['method']['requires']); } foreach ($requires as $require) { if ($require == 'download' && getenv('CI')) { $this->markTestSkipped('Do not run tests that download videos on CI.'); } } } }