PhpUnitMockShortWillReturnFixer
extends AbstractPhpUnitFixer
in package
FinalYes
Tags
Table of Contents
Constants
- RETURN_METHODS_MAP = ['returnargument' => 'willReturnArgument', 'returncallback' => 'willReturnCallback', 'returnself' => 'willReturnSelf', 'returnvalue' => 'willReturn', 'returnvaluemap' => 'willReturnMap']
Methods
- getDefinition() : FixerDefinitionInterface
- isRisky() : bool
- applyPhpUnitClassFix() : void
Constants
RETURN_METHODS_MAP
private
mixed
RETURN_METHODS_MAP
= ['returnargument' => 'willReturnArgument', 'returncallback' => 'willReturnCallback', 'returnself' => 'willReturnSelf', 'returnvalue' => 'willReturn', 'returnvaluemap' => 'willReturnMap']
Methods
getDefinition()
public
getDefinition() : FixerDefinitionInterface
Return values
FixerDefinitionInterfaceisRisky()
public
isRisky() : bool
Return values
boolapplyPhpUnitClassFix()
protected
applyPhpUnitClassFix(Tokens $tokens, int $startIndex, int $endIndex) : void
Parameters
- $tokens : Tokens
- $startIndex : int
- $endIndex : int