PHP Класс PhpCsFixer\Test\IntegrationCaseFactory

Автор: Dariusz Rumiński ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
create ( Symfony\Component\Finder\SplFileInfo $file ) : IntegrationCase

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
determineCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file, string $suffix ) : string | null
parseJson ( string | null $encoded, array $template = null ) : array

Описание методов

create() публичный Метод

public create ( Symfony\Component\Finder\SplFileInfo $file ) : IntegrationCase
$file Symfony\Component\Finder\SplFileInfo
Результат IntegrationCase

determineConfig() защищенный Метод

Parses the '--CONFIG--' block of a '.test' file.
protected determineConfig ( string $config ) : array
$config string
Результат array

determineExpectedCode() защищенный Метод

protected determineExpectedCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file ) : string
$code string | null
$file Symfony\Component\Finder\SplFileInfo
Результат string

determineInputCode() защищенный Метод

protected determineInputCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file ) : string | null
$code string | null
$file Symfony\Component\Finder\SplFileInfo
Результат string | null

determineRequirements() защищенный Метод

Parses the '--REQUIREMENTS--' block of a '.test' file and determines requirements.
protected determineRequirements ( string $config ) : array
$config string
Результат array

determineRuleset() защищенный Метод

Parses the '--RULESET--' block of a '.test' file and determines what fixers should be used.
protected determineRuleset ( string $config ) : RuleSet
$config string
Результат PhpCsFixer\RuleSet

determineSettings() защищенный Метод

Parses the '--SETTINGS--' block of a '.test' file and determines settings.
protected determineSettings ( string $config ) : array
$config string
Результат array