Skip to content

Commit

Permalink
Fix: Prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 29, 2020
1 parent e2d28f6 commit 65a28a7
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 55 deletions.
12 changes: 6 additions & 6 deletions test/Unit/Format/FormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function testWithHasFinalNewLineClonesFormatAndSetsFinalNewLine(bool $has
}

/**
* @dataProvider providerEncodedWithoutIndent
* @dataProvider provideEncodedWithoutIndent
*/
public function testFromJsonReturnsFormatWithDefaultIndentIfJsonIsWithoutIndent(string $encoded): void
{
Expand All @@ -138,7 +138,7 @@ public function testFromJsonReturnsFormatWithDefaultIndentIfJsonIsWithoutIndent(
/**
* @return \Generator<array<string>>
*/
public function providerEncodedWithoutIndent(): \Generator
public function provideEncodedWithoutIndent(): \Generator
{
$values = [
'array-empty' => '[]',
Expand All @@ -162,7 +162,7 @@ public function providerEncodedWithoutIndent(): \Generator
}

/**
* @dataProvider providerWhitespaceWithoutNewLine
* @dataProvider provideWhitespaceWithoutNewLine
*/
public function testFromFormatReturnsFormatWithoutFinalNewLineIfThereIsNoFinalNewLine(string $actualWhitespace): void
{
Expand All @@ -186,7 +186,7 @@ public function testFromFormatReturnsFormatWithoutFinalNewLineIfThereIsNoFinalNe
/**
* @return \Generator<array<string>>
*/
public function providerWhitespaceWithoutNewLine(): \Generator
public function provideWhitespaceWithoutNewLine(): \Generator
{
$characters = [
' ',
Expand All @@ -205,7 +205,7 @@ public function providerWhitespaceWithoutNewLine(): \Generator
}

/**
* @dataProvider providerWhitespaceWithNewLine
* @dataProvider provideWhitespaceWithNewLine
*/
public function testFromFormatReturnsFormatWithFinalNewLineIfThereIsAtLeastOneFinalNewLine(string $actualWhitespace): void
{
Expand All @@ -229,7 +229,7 @@ public function testFromFormatReturnsFormatWithFinalNewLineIfThereIsAtLeastOneFi
/**
* @return \Generator<array<string>>
*/
public function providerWhitespaceWithNewLine(): \Generator
public function provideWhitespaceWithNewLine(): \Generator
{
$characters = [
'',
Expand Down
28 changes: 14 additions & 14 deletions test/Unit/Format/IndentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testConstants(): void
}

/**
* @dataProvider providerInvalidSize
* @dataProvider provideInvalidSize
*/
public function testFromSizeAndStyleRejectsInvalidSize(int $size): void
{
Expand All @@ -61,7 +61,7 @@ public function testFromSizeAndStyleRejectsInvalidSize(int $size): void
/**
* @return \Generator<array<int>>
*/
public function providerInvalidSize(): \Generator
public function provideInvalidSize(): \Generator
{
$sizes = [
'int-zero' => 0,
Expand Down Expand Up @@ -92,7 +92,7 @@ public function testFromSizeAndStyleRejectsInvalidStyle(): void
}

/**
* @dataProvider providerSizeStyleAndIndentString
* @dataProvider provideSizeStyleAndIndentString
*/
public function testFromSizeAndStyleReturnsIndent(int $size, string $style, string $string): void
{
Expand All @@ -107,7 +107,7 @@ public function testFromSizeAndStyleReturnsIndent(int $size, string $style, stri
/**
* @return \Generator<array{0: int, 1: string, 2: string}>
*/
public function providerSizeStyleAndIndentString(): \Generator
public function provideSizeStyleAndIndentString(): \Generator
{
foreach (self::sizes() as $key => $size) {
foreach (Indent::CHARACTERS as $style => $character) {
Expand All @@ -126,7 +126,7 @@ public function providerSizeStyleAndIndentString(): \Generator
}

/**
* @dataProvider providerInvalidIndentString
* @dataProvider provideInvalidIndentString
*/
public function testFromStringRejectsInvalidIndentString(string $string): void
{
Expand All @@ -138,7 +138,7 @@ public function testFromStringRejectsInvalidIndentString(string $string): void
/**
* @return \Generator<array<string>>
*/
public function providerInvalidIndentString(): \Generator
public function provideInvalidIndentString(): \Generator
{
$strings = [
'string-not-whitespace' => self::faker()->sentence,
Expand All @@ -154,7 +154,7 @@ public function providerInvalidIndentString(): \Generator
}

/**
* @dataProvider providerValidIndentString
* @dataProvider provideValidIndentString
*/
public function testFromStringReturnsIndent(string $string): void
{
Expand All @@ -166,7 +166,7 @@ public function testFromStringReturnsIndent(string $string): void
/**
* @return \Generator<array<string>>
*/
public function providerValidIndentString(): \Generator
public function provideValidIndentString(): \Generator
{
foreach (self::sizes() as $key => $size) {
foreach (Indent::CHARACTERS as $style => $character) {
Expand All @@ -183,8 +183,8 @@ public function providerValidIndentString(): \Generator
}

/**
* @dataProvider providerMixedIndentAndSniffedIndent
* @dataProvider providerPureIndentAndSniffedIndent
* @dataProvider provideMixedIndentAndSniffedIndent
* @dataProvider providePureIndentAndSniffedIndent
*/
public function testFromJsonReturnsIndentSniffedFromArray(string $actualIndent, string $sniffedIndent): void
{
Expand All @@ -206,8 +206,8 @@ public function testFromJsonReturnsIndentSniffedFromArray(string $actualIndent,
}

/**
* @dataProvider providerMixedIndentAndSniffedIndent
* @dataProvider providerPureIndentAndSniffedIndent
* @dataProvider provideMixedIndentAndSniffedIndent
* @dataProvider providePureIndentAndSniffedIndent
*/
public function testFromJsonReturnsIndentSniffedFromObject(string $actualIndent, string $sniffedIndent): void
{
Expand All @@ -231,7 +231,7 @@ public function testFromJsonReturnsIndentSniffedFromObject(string $actualIndent,
/**
* @return \Generator<array<string>>
*/
public function providerPureIndentAndSniffedIndent(): \Generator
public function providePureIndentAndSniffedIndent(): \Generator
{
$sizes = [
1,
Expand Down Expand Up @@ -262,7 +262,7 @@ public function providerPureIndentAndSniffedIndent(): \Generator
/**
* @return \Generator<array<string>>
*/
public function providerMixedIndentAndSniffedIndent(): \Generator
public function provideMixedIndentAndSniffedIndent(): \Generator
{
$mixedIndents = [
'space-and-tab' => [
Expand Down
12 changes: 6 additions & 6 deletions test/Unit/Format/JsonEncodeOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class JsonEncodeOptionsTest extends Framework\TestCase
use Helper;

/**
* @dataProvider providerInvalidValue
* @dataProvider provideInvalidValue
*/
public function testFromIntRejectsInvalidValue(int $value): void
{
Expand All @@ -44,7 +44,7 @@ public function testFromIntRejectsInvalidValue(int $value): void
/**
* @return \Generator<array<int>>
*/
public function providerInvalidValue(): \Generator
public function provideInvalidValue(): \Generator
{
$values = [
'int-minus-one' => -1,
Expand All @@ -59,7 +59,7 @@ public function providerInvalidValue(): \Generator
}

/**
* @dataProvider providerValidValue
* @dataProvider provideValidValue
*/
public function testFromIntReturnsJsonEncodeOptions(int $value): void
{
Expand All @@ -71,7 +71,7 @@ public function testFromIntReturnsJsonEncodeOptions(int $value): void
/**
* @return \Generator<array<int>>
*/
public function providerValidValue(): \Generator
public function provideValidValue(): \Generator
{
$values = [
'int-zero' => 0,
Expand All @@ -86,7 +86,7 @@ public function providerValidValue(): \Generator
}

/**
* @dataProvider providerJsonEncodeOptionsAndEncoded
* @dataProvider provideJsonEncodeOptionsAndEncoded
*/
public function testFromJsonReturnsJsonEncodeOptions(int $value, string $encoded): void
{
Expand All @@ -100,7 +100,7 @@ public function testFromJsonReturnsJsonEncodeOptions(int $value, string $encoded
/**
* @return array<array{0: int, 1: string}>
*/
public function providerJsonEncodeOptionsAndEncoded(): array
public function provideJsonEncodeOptionsAndEncoded(): array
{
return [
[
Expand Down
14 changes: 7 additions & 7 deletions test/Unit/Format/NewLineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
final class NewLineTest extends Framework\TestCase
{
/**
* @dataProvider providerInvalidNewLineString
* @dataProvider provideInvalidNewLineString
*/
public function testFromStringRejectsInvalidNewLineString(string $string): void
{
Expand All @@ -41,7 +41,7 @@ public function testFromStringRejectsInvalidNewLineString(string $string): void
/**
* @return \Generator<array<string>>
*/
public function providerInvalidNewLineString(): \Generator
public function provideInvalidNewLineString(): \Generator
{
$strings = [
"\t",
Expand All @@ -62,7 +62,7 @@ public function providerInvalidNewLineString(): \Generator
}

/**
* @dataProvider providerValidNewLineString
* @dataProvider provideValidNewLineString
*/
public function testFromStringReturnsNewLine(string $string): void
{
Expand All @@ -74,7 +74,7 @@ public function testFromStringReturnsNewLine(string $string): void
/**
* @return \Generator<array<string>>
*/
public function providerValidNewLineString(): \Generator
public function provideValidNewLineString(): \Generator
{
$strings = [
"\n",
Expand All @@ -101,7 +101,7 @@ public function testFromJsonReturnsFormatWithDefaultNewLineIfNoneFound(): void
}

/**
* @dataProvider providerNewLine
* @dataProvider provideNewLine
*/
public function testFromFormatReturnsFormatWithNewLineSniffedFromArray(string $newLineString): void
{
Expand All @@ -117,7 +117,7 @@ public function testFromFormatReturnsFormatWithNewLineSniffedFromArray(string $n
}

/**
* @dataProvider providerNewLine
* @dataProvider provideNewLine
*/
public function testFromFormatReturnsFormatWithNewLineNewLineSniffedFromObject(string $newLineString): void
{
Expand All @@ -135,7 +135,7 @@ public function testFromFormatReturnsFormatWithNewLineNewLineSniffedFromObject(s
/**
* @return \Generator<array<string>>
*/
public function providerNewLine(): \Generator
public function provideNewLine(): \Generator
{
$values = [
"\r\n",
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/JsonEncodeNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
final class JsonEncodeNormalizerTest extends AbstractNormalizerTestCase
{
/**
* @dataProvider providerJsonEncodeOptions
* @dataProvider provideJsonEncodeOptions
*/
public function testNormalizeDecodesAndEncodesJsonWithJsonEncodeOptions(int $jsonEncodeOptions): void
{
Expand Down Expand Up @@ -60,7 +60,7 @@ public function testNormalizeDecodesAndEncodesJsonWithJsonEncodeOptions(int $jso
/**
* @return \Generator<array<int>>
*/
public function providerJsonEncodeOptions(): \Generator
public function provideJsonEncodeOptions(): \Generator
{
/**
* Could add more, but the idea counts.
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/JsonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testFromEncodedRejectsInvalidEncoded(): void
}

/**
* @dataProvider providerEncoded
* @dataProvider provideEncoded
*/
public function testFromEncodedReturnsJson(string $encoded): void
{
Expand All @@ -65,7 +65,7 @@ public function testFromEncodedReturnsJson(string $encoded): void
/**
* @return \Generator<array<null|array|bool|float|int|string>>
*/
public function providerEncoded(): \Generator
public function provideEncoded(): \Generator
{
$values = [
'array-indexed' => [
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/SchemaNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function testNormalizeThrowsNormalizedInvalidAccordingToSchemaExceptionWh
}

/**
* @dataProvider providerExpectedEncodedAndSchemaUri
* @dataProvider provideExpectedEncodedAndSchemaUri
*/
public function testNormalizeNormalizes(string $expected, string $encoded, string $schemaUri): void
{
Expand All @@ -327,7 +327,7 @@ public function testNormalizeNormalizes(string $expected, string $encoded, strin
/**
* @return \Generator<array<string>>
*/
public function providerExpectedEncodedAndSchemaUri(): \Generator
public function provideExpectedEncodedAndSchemaUri(): \Generator
{
$basePath = __DIR__ . '/../';

Expand Down
4 changes: 2 additions & 2 deletions test/Unit/Vendor/Composer/AbstractComposerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
abstract class AbstractComposerTestCase extends AbstractNormalizerTestCase
{
/**
* @dataProvider providerJsonNotDecodingToObject
* @dataProvider provideJsonNotDecodingToObject
*/
final public function testNormalizeDoesNotModifyWhenJsonDecodedIsNotAnObject(string $encoded): void
{
Expand All @@ -45,7 +45,7 @@ final public function testNormalizeDoesNotModifyWhenJsonDecodedIsNotAnObject(str
/**
* @return \Generator<array<string>>
*/
final public function providerJsonNotDecodingToObject(): \Generator
final public function provideJsonNotDecodingToObject(): \Generator
{
$faker = self::faker();

Expand Down
6 changes: 3 additions & 3 deletions test/Unit/Vendor/Composer/ConfigHashNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testNormalizeDoesNotModifyOtherProperty(): void
}

/**
* @dataProvider providerProperty
* @dataProvider provideProperty
*/
public function testNormalizeIgnoresEmptyConfigHash(string $property): void
{
Expand All @@ -66,7 +66,7 @@ public function testNormalizeIgnoresEmptyConfigHash(string $property): void
}

/**
* @dataProvider providerProperty
* @dataProvider provideProperty
*/
public function testNormalizeSortsConfigHashIfPropertyExists(string $property): void
{
Expand Down Expand Up @@ -110,7 +110,7 @@ public function testNormalizeSortsConfigHashIfPropertyExists(string $property):
/**
* @return \Generator<array<string>>
*/
public function providerProperty(): \Generator
public function provideProperty(): \Generator
{
foreach (self::properties() as $value) {
yield $value => [
Expand Down
Loading

0 comments on commit 65a28a7

Please sign in to comment.