PhpUnitConstructFixer
extends AbstractPhpUnitFixer
in package
implements
ConfigurationDefinitionFixerInterface
Tags
Interfaces, Classes and Traits
Table of Contents
- $assertionFixers : mixed
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isRisky() : mixed
- {@inheritdoc}
- applyPhpUnitClassFix() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- fixAssert() : null|int
- fixAssertNegative() : null|int
- fixAssertPositive() : null|int
Properties
$assertionFixers
private
static mixed
$assertionFixers
= ['assertSame' => 'fixAssertPositive', 'assertEquals' => 'fixAssertPositive', 'assertNotEquals' => 'fixAssertNegative', 'assertNotSame' => 'fixAssertNegative']
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before PhpUnitDedicateAssertFixer.
Return values
mixed —isRisky()
{@inheritdoc}
public
isRisky() : mixed
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 —fixAssert()
private
fixAssert(array<string, string> $map, Tokens $tokens, int $index, string $method) : null|int
Parameters
- $map : array<string, string>
- $tokens : Tokens
- $index : int
- $method : string
Return values
null|int —fixAssertNegative()
private
fixAssertNegative(Tokens $tokens, int $index, string $method) : null|int
Parameters
- $tokens : Tokens
- $index : int
- $method : string
Return values
null|int —fixAssertPositive()
private
fixAssertPositive(Tokens $tokens, int $index, string $method) : null|int
Parameters
- $tokens : Tokens
- $index : int
- $method : string