PhpUnitSizeClassFixer
extends AbstractPhpUnitFixer
in package
implements
WhitespacesAwareFixerInterface, ConfigurableFixerInterface
uses
ConfigurableFixerTrait
FinalYes
Tags
Table of Contents
Interfaces
Constants
- SIZES = ['small', 'medium', 'large']
Methods
- getDefinition() : FixerDefinitionInterface
- Returns the definition of the fixer.
- getPriority() : int
- Returns the priority of the fixer.
- applyPhpUnitClassFix() : void
- createConfigurationDefinition() : FixerConfigurationResolverInterface
- isAbstractClass() : bool
Constants
SIZES
private
mixed
SIZES
= ['small', 'medium', 'large']
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 PhpdocSeparationFixer.
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
FixerConfigurationResolverInterfaceisAbstractClass()
private
isAbstractClass(Tokens $tokens, int $i) : bool
Parameters
- $tokens : Tokens
- $i : int