Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Rename data providers #600

Merged
merged 1 commit into from
Oct 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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