PhpUnitNamespacedFixer
extends AbstractFixer
in package
implements
ConfigurationDefinitionFixerInterface
Tags
Interfaces, Classes and Traits
Table of Contents
- $classMap : array<string|int, mixed>|array<string|int, string>
- Class Mappings.
- $originalClassRegEx : string
- configure() : mixed
- {@inheritdoc}
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- isRisky() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- generateReplacement() : Tokens
Properties
$classMap
Class Mappings.
private
array<string|int, mixed>|array<string|int, string>
$classMap
- [original classname => new classname] Some classes which match the original class regular expression do not have a same-compound name- space class and need a dedicated translation table. This trans- lation table is defined in @see configure.
$originalClassRegEx
private
string
$originalClassRegEx
Methods
configure()
{@inheritdoc}
public
configure([array<string|int, mixed> $configuration = null ]) : mixed
Parameters
- $configuration : array<string|int, mixed> = null
Return values
mixed —getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —isRisky()
{@inheritdoc}
public
isRisky() : mixed
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —createConfigurationDefinition()
{@inheritdoc}
protected
createConfigurationDefinition() : mixed
Return values
mixed —generateReplacement()
private
generateReplacement(string $originalClassName) : Tokens
Parameters
- $originalClassName : string