Documentation

PhpUnitDedicateAssertFixer extends AbstractPhpUnitFixer
in package
implements ConfigurationDefinitionFixerInterface

Tags
author

SpacePossum

author

Dariusz RumiƄski dariusz.ruminski@gmail.com

Interfaces, Classes and Traits

ConfigurationDefinitionFixerInterface

Table of Contents

$fixMap  : mixed
$functions  : array<string|int, string>
configure()  : mixed
{@inheritdoc}
getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isRisky()  : mixed
{@inheritdoc}
applyPhpUnitClassFix()  : mixed
{@inheritdoc}
createConfigurationDefinition()  : mixed
{@inheritdoc}
fixAssertSameEquals()  : mixed
fixAssertTrueFalse()  : mixed
getPreviousAssertCall()  : mixed
removeFunctionCall()  : mixed

Properties

$fixMap

private static mixed $fixMap = ['array_key_exists' => ['assertArrayNotHasKey', 'assertArrayHasKey'], 'empty' => ['assertNotEmpty', 'assertEmpty'], 'file_exists' => ['assertFileNotExists', 'assertFileExists'], 'is_array' => true, 'is_bool' => true, 'is_callable' => true, 'is_dir' => ['assertDirectoryNotExists', 'assertDirectoryExists'], 'is_double' => true, 'is_float' => true, 'is_infinite' => ['assertFinite', 'assertInfinite'], 'is_int' => true, 'is_integer' => true, 'is_long' => true, 'is_nan' => [false, 'assertNan'], 'is_null' => ['assertNotNull', 'assertNull'], 'is_numeric' => true, 'is_object' => true, 'is_readable' => ['assertNotIsReadable', 'assertIsReadable'], 'is_real' => true, 'is_resource' => true, 'is_scalar' => true, 'is_string' => true, 'is_writable' => ['assertNotIsWritable', 'assertIsWritable']]

Methods

configure()

{@inheritdoc}

public configure([array<string|int, mixed> $configuration = null ]) : mixed
Parameters
$configuration : array<string|int, mixed> = null
Return values
mixed

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before PhpUnitDedicateAssertInternalTypeFixer. Must run after NoAliasFunctionsFixer, PhpUnitConstructFixer.

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

fixAssertSameEquals()

private fixAssertSameEquals(Tokens $tokens, array<string|int, mixed> $assertCall) : mixed
Parameters
$tokens : Tokens
$assertCall : array<string|int, mixed>
Return values
mixed

fixAssertTrueFalse()

private fixAssertTrueFalse(Tokens $tokens, array<string|int, mixed> $assertCall) : mixed
Parameters
$tokens : Tokens
$assertCall : array<string|int, mixed>
Return values
mixed

getPreviousAssertCall()

private getPreviousAssertCall(Tokens $tokens, int $startIndex, int $endIndex) : mixed
Parameters
$tokens : Tokens
$startIndex : int
$endIndex : int
Return values
mixed

removeFunctionCall()

private removeFunctionCall(Tokens $tokens, false|int $callNSIndex, int $callIndex, int $openIndex, int $closeIndex) : mixed
Parameters
$tokens : Tokens
$callNSIndex : false|int
$callIndex : int
$openIndex : int
$closeIndex : int
Return values
mixed

Search results