Documentation

PhpUnitExpectationFixer extends AbstractPhpUnitFixer
in package
implements ConfigurableFixerInterface, WhitespacesAwareFixerInterface uses ConfigurableFixerTrait

FinalYes
Tags
author

Dariusz Rumiński dariusz.ruminski@gmail.com

implements

ConfigurableFixerInterface<_AutogeneratedInputConfiguration, _AutogeneratedComputedConfiguration>

phpstan-type

_AutogeneratedInputConfiguration array{ target?: '5.2'|'5.6'|'8.4'|'newest' }

phpstan-type

_AutogeneratedComputedConfiguration array{ target: '5.2'|'5.6'|'8.4'|'newest' }

Table of Contents

Interfaces

ConfigurableFixerInterface
WhitespacesAwareFixerInterface

Properties

$methodMap  : array<string, string>

Methods

getDefinition()  : FixerDefinitionInterface
Returns the definition of the fixer.
getPriority()  : int
Returns the priority of the fixer.
isRisky()  : bool
Check if fixer is risky or not.
applyPhpUnitClassFix()  : void
configurePostNormalisation()  : void
createConfigurationDefinition()  : FixerConfigurationResolverInterface
applyPhpUnitClassFixWithObjectOperator()  : void

Properties

Methods

getPriority()

Returns the priority of the fixer.

public getPriority() : int

Must run after PhpUnitNoExpectationAnnotationFixer.

Return values
int

isRisky()

Check if fixer is risky or not.

public isRisky() : bool

Risky fixer could change code behavior!

Return values
bool

applyPhpUnitClassFix()

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

applyPhpUnitClassFixWithObjectOperator()

private applyPhpUnitClassFixWithObjectOperator(Tokens $tokens, int $startIndex, int $endIndex, int $objectOperator) : void
Parameters
$tokens : Tokens
$startIndex : int
$endIndex : int
$objectOperator : int

        
On this page

Search results