public static function suiteEnvironments($suite)
    {
        $settings = self::suiteSettings($suite, self::config());

        if (!isset($settings['env']) || !is_array($settings['env'])) {
            return [];
        }

        $environments = [];

        foreach ($settings['env'] as $env => $envConfig) {
            $environments[$env] = $envConfig ? self::mergeConfigs($settings, $envConfig) : $settings;
            $environments[$env]['current_environment'] = $env;
        }

        return $environments;
    }
public static function suiteEnvironments($suite)
    {
        $settings = self::suiteSettings($suite, self::config());

        if (!isset($settings['env']) || !is_array($settings['env'])) {
            return [];
        }

        $environments = [];

        foreach ($settings['env'] as $env => $envConfig) {
            $environments[$env] = $envConfig ? self::mergeConfigs($settings, $envConfig) : $settings;
            $environments[$env]['current_environment'] = $env;
        }

        return $environments;
    }
public static function suiteEnvironments ( $ suite ) { $ settings = self :: suiteSettings ( $ suite , self :: config ( ) ) ; if ( ! isset ( $ settings [ 'env' ] ) || ! is_array ( $ settings [ 'env' ] ) ) { return [ ] ; } $ environments = [ ] ; foreach ( $ settings [ 'env' ] as $ env => $ envConfig ) { $ environments [ $ env ] = $ envConfig ? self :: mergeConfigs ( $ settings , $ envConfig ) : $ settings ; $ environments [ $ env ] [ 'current_environment' ] = $ env ; } return $ environments ; }
Returns all possible suite configurations according environment rules.
Suite configurations will contain `current_environment` key which specifies what environment used.

@param $suite
@return array
@throws ConfigurationException
Returns all possible suite configurations according environment rules . Suite configurations will contain current_environment key which specifies what environment used .