PhpUnitMethodCasingFixer
extends AbstractPhpUnitFixer
in package
implements
ConfigurationDefinitionFixerInterface
Tags
Interfaces, Classes and Traits
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- applyPhpUnitClassFix() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- isMethod() : bool
- isTestMethod() : bool
- startsWith() : bool
- updateDocBlock() : mixed
- updateMethodCasing() : string
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run after PhpUnitTestAnnotationFixer.
Return values
mixed —applyPhpUnitClassFix()
{@inheritdoc}
protected
applyPhpUnitClassFix(Tokens $tokens, mixed $startIndex, mixed $endIndex) : mixed
Parameters
- $tokens : Tokens
- $startIndex : mixed
- $endIndex : mixed
Return values
mixed —createConfigurationDefinition()
{@inheritdoc}
protected
createConfigurationDefinition() : mixed
Return values
mixed —isMethod()
private
isMethod(Tokens $tokens, int $index) : bool
Parameters
- $tokens : Tokens
- $index : int
Return values
bool —isTestMethod()
private
isTestMethod(Tokens $tokens, int $index) : bool
Parameters
- $tokens : Tokens
- $index : int
Return values
bool —startsWith()
private
startsWith(string $needle, string $haystack) : bool
Parameters
- $needle : string
- $haystack : string
Return values
bool —updateDocBlock()
private
updateDocBlock(Tokens $tokens, int $docBlockIndex) : mixed
Parameters
- $tokens : Tokens
- $docBlockIndex : int
Return values
mixed —updateMethodCasing()
private
updateMethodCasing(string $functionName) : string
Parameters
- $functionName : string