Documentation

PhpUnitMethodCasingFixer extends AbstractPhpUnitFixer
in package
implements ConfigurableFixerInterface uses ConfigurableFixerTrait

FinalYes
Tags
author

Filippo Tessarotto zoeslam@gmail.com

implements

ConfigurableFixerInterface<_AutogeneratedInputConfiguration, _AutogeneratedComputedConfiguration>

phpstan-type

_AutogeneratedInputConfiguration array{ case?: 'camel_case'|'snake_case' }

phpstan-type

_AutogeneratedComputedConfiguration array{ case: 'camel_case'|'snake_case' }

Table of Contents

Interfaces

ConfigurableFixerInterface

Methods

getDefinition()  : FixerDefinitionInterface
Returns the definition of the fixer.
getPriority()  : int
Returns the priority of the fixer.
applyPhpUnitClassFix()  : void
createConfigurationDefinition()  : FixerConfigurationResolverInterface
isMethod()  : bool
isTestMethod()  : bool
updateDocBlock()  : void
updateMethodCasing()  : string

Methods

getPriority()

Returns the priority of the fixer.

public getPriority() : int

Must run after PhpUnitTestAnnotationFixer.

Return values
int

applyPhpUnitClassFix()

protected applyPhpUnitClassFix(Tokens $tokens, int $startIndex, int $endIndex) : void
Parameters
$tokens : Tokens
$startIndex : int
$endIndex : int

updateMethodCasing()

private updateMethodCasing(string $functionName) : string
Parameters
$functionName : string
Return values
string

        
On this page

Search results