PHP 클래스 PhpCsFixer\Test\IntegrationCaseFactory

저자: Dariusz Rumiński ([email protected])
파일 보기 프로젝트 열기: friendsofphp/php-cs-fixer 1 사용 예제들

공개 메소드들

메소드 설명
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