PhpUnitInternalClassFixer
extends AbstractPhpUnitFixer
in package
implements
WhitespacesAwareFixerInterface, ConfigurationDefinitionFixerInterface
Tags
Interfaces, Classes and Traits
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- applyPhpUnitClassFix() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- addInternalAnnotation() : array<string|int, Line>
- createDocBlock() : mixed
- isAllowedByConfiguration() : bool
- makeDocBlockMultiLineIfNeeded() : DocBlock
- updateDocBlockIfNeeded() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before FinalInternalClassFixer.
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 —addInternalAnnotation()
private
addInternalAnnotation(DocBlock $docBlock, Tokens $tokens, int $docBlockIndex) : array<string|int, Line>
Parameters
Return values
array<string|int, Line> —createDocBlock()
private
createDocBlock(Tokens $tokens, mixed $docBlockIndex) : mixed
Parameters
- $tokens : Tokens
- $docBlockIndex : mixed
Return values
mixed —isAllowedByConfiguration()
private
isAllowedByConfiguration(Tokens $tokens, int $i) : bool
Parameters
- $tokens : Tokens
- $i : int
Return values
bool —makeDocBlockMultiLineIfNeeded()
private
makeDocBlockMultiLineIfNeeded(DocBlock $doc, Tokens $tokens, int $docBlockIndex) : DocBlock
Parameters
Return values
DocBlock —updateDocBlockIfNeeded()
private
updateDocBlockIfNeeded(Tokens $tokens, mixed $docBlockIndex) : mixed
Parameters
- $tokens : Tokens
- $docBlockIndex : mixed