Skip to content

Commit

Permalink
Merge pull request #600 from ergebnis/fix/rename
Browse files Browse the repository at this point in the history
Fix: Rename data providers
  • Loading branch information
ergebnis-bot authored Oct 31, 2020
2 parents e2ba38d + efbd1fd commit 3a3188e
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions test/Integration/Command/NormalizeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function tearDown(): void
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testFailsWhenIndentStyleIsUsedWithoutIndentSize(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -96,7 +96,7 @@ public function testFailsWhenIndentStyleIsUsedWithoutIndentSize(CommandInvocatio
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testFailsWhenIndentSizeIsUsedWithoutIndentStyle(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -124,7 +124,7 @@ public function testFailsWhenIndentSizeIsUsedWithoutIndentStyle(CommandInvocatio
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testFailsWhenIndentStyleIsInvalid(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -164,7 +164,7 @@ public function testFailsWhenIndentStyleIsInvalid(CommandInvocation $commandInvo
}

/**
* @dataProvider providerCommandInvocationAndInvalidIndentSize
* @dataProvider provideCommandInvocationAndInvalidIndentSize
*/
public function testFailsWhenIndentSizeIsInvalid(CommandInvocation $commandInvocation, string $indentSize): void
{
Expand Down Expand Up @@ -204,7 +204,7 @@ public function testFailsWhenIndentSizeIsInvalid(CommandInvocation $commandInvoc
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testFailsWhenComposerJsonIsPresentButNotValidAccordingToLaxValidation(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -235,7 +235,7 @@ public function testFailsWhenComposerJsonIsPresentButNotValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testFailsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsNotPresentAndRuntimeExceptionIsThrownDuringNormalization(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -292,7 +292,7 @@ public function normalize(Json $json): Json
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsNotPresentAndComposerJsonIsAlreadyNormalized(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -329,7 +329,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsNotPresentAndComposerJsonIsNotYetNormalized(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -370,7 +370,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsNotPresentAndComposerJsonIsNotYetNormalizedAndDiffOptionIsUsed(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -419,7 +419,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testFailsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsNotPresentAndComposerJsonIsNotYetNormalizedAndDryRunOptionIsUsed(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -464,7 +464,7 @@ public function testFailsWhenComposerJsonIsPresentAndValidAccordingToLaxValidati
}

/**
* @dataProvider providerCommandInvocationIndentSizeAndIndentStyle
* @dataProvider provideCommandInvocationIndentSizeAndIndentStyle
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsNotPresentAndComposerJsonIsNotYetNormalizedAndIndentSizeAndIndentStyleOptionsAreUsed(
CommandInvocation $commandInvocation,
Expand Down Expand Up @@ -511,7 +511,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsNotPresentAndComposerJsonIsNotYetNormalizedAndNoUpdateLockOptionIsUsed(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -554,7 +554,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testFailsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsPresentButNotFreshBefore(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -586,7 +586,7 @@ public function testFailsWhenComposerJsonIsPresentAndValidAccordingToLaxValidati
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsPresentButNotFreshBeforeNoCheckLockOptionIsUsedAndComposerJsonIsAlreadyNormalized(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -626,7 +626,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsPresentButNotFreshBeforeNoCheckLockOptionIsUsedAndComposerJsonIsNotYetNormalized(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -671,7 +671,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsPresentAndFreshBeforeAndComposerJsonIsAlreadyNormalized(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -709,7 +709,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsPresentAndFreshBeforeAndComposerJsonIsNotYetNormalizedAndComposerLockIsFreshAfter(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -751,7 +751,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsPresentAndFreshBeforeAndComposerJsonIsNotYetNormalizedAndComposerLockIsNotFreshAfter(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -798,7 +798,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testFailsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsPresentAndFreshBeforeAndComposerJsonIsNotYetNormalizedAndDryRunOptionIsUsed(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -841,7 +841,7 @@ public function testFailsWhenComposerJsonIsPresentAndValidAccordingToLaxValidati
}

/**
* @dataProvider providerCommandInvocation
* @dataProvider provideCommandInvocation
*/
public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValidationAndComposerLockIsPresentAndFreshBeforeAndComposerJsonIsNotYetNormalizedAndNoUpdateLockOptionIsUsed(CommandInvocation $commandInvocation): void
{
Expand Down Expand Up @@ -888,7 +888,7 @@ public function testSucceedsWhenComposerJsonIsPresentAndValidAccordingToLaxValid
/**
* @return \Generator<array<CommandInvocation>>
*/
public function providerCommandInvocation(): \Generator
public function provideCommandInvocation(): \Generator
{
foreach (self::commandInvocations() as $commandInvocation) {
yield $commandInvocation->style() => [
Expand All @@ -900,7 +900,7 @@ public function providerCommandInvocation(): \Generator
/**
* @return \Generator<array{0: CommandInvocation, 1: string}>
*/
public function providerCommandInvocationAndInvalidIndentSize(): \Generator
public function provideCommandInvocationAndInvalidIndentSize(): \Generator
{
$faker = self::faker();

Expand Down Expand Up @@ -933,7 +933,7 @@ public function providerCommandInvocationAndInvalidIndentSize(): \Generator
/**
* @return \Generator<array{0: CommandInvocation, 1: int, 2: string}>
*/
public function providerCommandInvocationIndentSizeAndIndentStyle(): \Generator
public function provideCommandInvocationIndentSizeAndIndentStyle(): \Generator
{
/** @var array<int> $indentSizes */
$indentSizes = [
Expand Down

0 comments on commit 3a3188e

Please sign in to comment.