PHP Class PhpCsFixer\Test\IntegrationCaseFactory

Author: Dariusz Rumiński ([email protected])
Afficher le fichier Open project: friendsofphp/php-cs-fixer Class Usage Examples

Méthodes publiques

Méthode Description
create ( Symfony\Component\Finder\SplFileInfo $file ) : IntegrationCase

Méthodes protégées

Méthode Description
determineConfig ( string $config ) : array Parses the '--CONFIG--' block of a '.test' file.
determineExpectedCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file ) : string
determineInputCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file ) : string | null
determineRequirements ( string $config ) : array Parses the '--REQUIREMENTS--' block of a '.test' file and determines requirements.
determineRuleset ( string $config ) : RuleSet Parses the '--RULESET--' block of a '.test' file and determines what fixers should be used.
determineSettings ( string $config ) : array Parses the '--SETTINGS--' block of a '.test' file and determines settings.

Private Methods

Méthode Description
determineCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file, string $suffix ) : string | null
parseJson ( string | null $encoded, array $template = null ) : array

Method Details

create() public méthode

public create ( Symfony\Component\Finder\SplFileInfo $file ) : IntegrationCase
$file Symfony\Component\Finder\SplFileInfo
Résultat IntegrationCase

determineConfig() protected méthode

Parses the '--CONFIG--' block of a '.test' file.
protected determineConfig ( string $config ) : array
$config string
Résultat array

determineExpectedCode() protected méthode

protected determineExpectedCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file ) : string
$code string | null
$file Symfony\Component\Finder\SplFileInfo
Résultat string

determineInputCode() protected méthode

protected determineInputCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file ) : string | null
$code string | null
$file Symfony\Component\Finder\SplFileInfo
Résultat string | null

determineRequirements() protected méthode

Parses the '--REQUIREMENTS--' block of a '.test' file and determines requirements.
protected determineRequirements ( string $config ) : array
$config string
Résultat array

determineRuleset() protected méthode

Parses the '--RULESET--' block of a '.test' file and determines what fixers should be used.
protected determineRuleset ( string $config ) : RuleSet
$config string
Résultat PhpCsFixer\RuleSet

determineSettings() protected méthode

Parses the '--SETTINGS--' block of a '.test' file and determines settings.
protected determineSettings ( string $config ) : array
$config string
Résultat array