PhpUnitMethodCasingFixer
extends AbstractPhpUnitFixer
in package
implements
ConfigurableFixerInterface
uses
ConfigurableFixerTrait
FinalYes
Tags
Table of Contents
Interfaces
Methods
- getDefinition() : FixerDefinitionInterface
- Returns the definition of the fixer.
- getPriority() : int
- Returns the priority of the fixer.
- applyPhpUnitClassFix() : void
- createConfigurationDefinition() : FixerConfigurationResolverInterface
- isMethod() : bool
- isTestMethod() : bool
- updateDocBlock() : void
- updateMethodCasing() : string
Methods
getDefinition()
Returns the definition of the fixer.
public
getDefinition() : FixerDefinitionInterface
Return values
FixerDefinitionInterfacegetPriority()
Returns the priority of the fixer.
public
getPriority() : int
Must run after PhpUnitTestAnnotationFixer.
Return values
intapplyPhpUnitClassFix()
protected
applyPhpUnitClassFix(Tokens $tokens, int $startIndex, int $endIndex) : void
Parameters
- $tokens : Tokens
- $startIndex : int
- $endIndex : int
createConfigurationDefinition()
protected
createConfigurationDefinition() : FixerConfigurationResolverInterface
Return values
FixerConfigurationResolverInterfaceisMethod()
private
isMethod(Tokens $tokens, int $index) : bool
Parameters
- $tokens : Tokens
- $index : int
Return values
boolisTestMethod()
private
isTestMethod(Tokens $tokens, int $index) : bool
Parameters
- $tokens : Tokens
- $index : int
Return values
boolupdateDocBlock()
private
updateDocBlock(Tokens $tokens, int $docBlockIndex) : void
Parameters
- $tokens : Tokens
- $docBlockIndex : int
updateMethodCasing()
private
updateMethodCasing(string $functionName) : string
Parameters
- $functionName : string