PhpUnitNoExpectationAnnotationFixer
extends AbstractPhpUnitFixer
in package
implements
ConfigurableFixerInterface, WhitespacesAwareFixerInterface
uses
ConfigurableFixerTrait
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $fixMessageRegExp : bool
Methods
- getDefinition() : FixerDefinitionInterface
- Returns the definition of the fixer.
- getPriority() : int
- Returns the priority of the fixer.
- isRisky() : bool
- Check if fixer is risky or not.
- applyPhpUnitClassFix() : void
- configurePostNormalisation() : void
- createConfigurationDefinition() : FixerConfigurationResolverInterface
- annotationsToParamList() : array<int, string>
- extractContentFromAnnotation() : string
Properties
$fixMessageRegExp
private
bool
$fixMessageRegExp
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 before NoEmptyPhpdocFixer, PhpUnitExpectationFixer.
Return values
intisRisky()
Check if fixer is risky or not.
public
isRisky() : bool
Risky fixer could change code behavior!
Return values
boolapplyPhpUnitClassFix()
protected
applyPhpUnitClassFix(Tokens $tokens, int $startIndex, int $endIndex) : void
Parameters
- $tokens : Tokens
- $startIndex : int
- $endIndex : int
configurePostNormalisation()
protected
configurePostNormalisation() : void
createConfigurationDefinition()
protected
createConfigurationDefinition() : FixerConfigurationResolverInterface
Return values
FixerConfigurationResolverInterfaceannotationsToParamList()
private
annotationsToParamList(array<string, string> $annotations) : array<int, string>
Parameters
- $annotations : array<string, string>
Return values
array<int, string>extractContentFromAnnotation()
private
extractContentFromAnnotation(Annotation $annotation) : string
Parameters
- $annotation : Annotation