Documentation

PhpUnitNamespacedFixer extends AbstractFixer
in package
implements ConfigurationDefinitionFixerInterface

Tags
author

Dariusz RumiƄski dariusz.ruminski@gmail.com

Interfaces, Classes and Traits

ConfigurationDefinitionFixerInterface

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.

Methods

configure()

{@inheritdoc}

public configure([array<string|int, mixed> $configuration = null ]) : mixed
Parameters
$configuration : array<string|int, mixed> = null
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

Search results