src/Behat/Behat/Context/Suite/Setup/SuiteWithContextsSetup.php
private function getSuiteContexts(Suite $suite)
    {
        $contexts = $suite->getSetting('contexts');

        if (!is_array($contexts)) {
            throw new SuiteConfigurationException(
                sprintf('`contexts` setting of the "%s" suite is expected to be an array, `%s` given.',
                    $suite->getName(),
                    gettype($contexts)
                ),
                $suite->getName()
            );
        }

        return $contexts;
    }
private function getSuiteContexts(Suite $suite)
    {
        $contexts = $suite->getSetting('contexts');

        if (!is_array($contexts)) {
            throw new SuiteConfigurationException(
                sprintf('`contexts` setting of the "%s" suite is expected to be an array, `%s` given.',
                    $suite->getName(),
                    gettype($contexts)
                ),
                $suite->getName()
            );
        }

        return $contexts;
    }
private function getSuiteContexts ( Suite $ suite ) { $ contexts = $ suite -> getSetting ( 'contexts' ) ; if ( ! is_array ( $ contexts ) ) { throw new SuiteConfigurationException ( sprintf ( '`contexts` setting of the "%s" suite is expected to be an array, `%s` given.' , $ suite -> getName ( ) , gettype ( $ contexts ) ) , $ suite -> getName ( ) ) ; } return $ contexts ; }
Returns array of context classes configured for the provided suite.

@param Suite $suite

@return string[]

@throws SuiteConfigurationException If `contexts` setting is not an array
Returns array of context classes configured for the provided suite .