Beispiel #1
0
 protected function isExecutedInCurrentEnvironment(\Codeception\TestCase $test)
 {
     $envs = $test->getEnvironment();
     if (empty($envs)) {
         return true;
     }
     $currentEnvironments = explode(',', $this->env);
     foreach ($envs as $envList) {
         $envList = explode(',', $envList);
         if (count($envList) == count(array_intersect($currentEnvironments, $envList))) {
             return true;
         }
     }
     return false;
 }