PhpCsFixer\Test\IntegrationCaseFactory::determineSettings PHP Method

determineSettings() protected method

Parses the '--SETTINGS--' block of a '.test' file and determines settings.
protected determineSettings ( string $config ) : array
$config string
return array
    protected function determineSettings($config)
    {
        $parsed = $this->parseJson($config, array('checkPriority' => true));
        if (!is_bool($parsed['checkPriority'])) {
            throw new \InvalidArgumentException(sprintf('Expected bool value for "checkPriority", got "%s".', is_object($parsed['checkPriority']) ? get_class($parsed['checkPriority']) : gettype($parsed['checkPriority']) . '#' . $parsed['checkPriority']));
        }
        return $parsed;
    }