diff --git a/test/Unit/Format/FormatTest.php b/test/Unit/Format/FormatTest.php index 1a7ec338..c6cf2af1 100644 --- a/test/Unit/Format/FormatTest.php +++ b/test/Unit/Format/FormatTest.php @@ -124,7 +124,7 @@ public function testWithHasFinalNewLineClonesFormatAndSetsFinalNewLine(bool $has } /** - * @dataProvider providerEncodedWithoutIndent + * @dataProvider provideEncodedWithoutIndent */ public function testFromJsonReturnsFormatWithDefaultIndentIfJsonIsWithoutIndent(string $encoded): void { @@ -138,7 +138,7 @@ public function testFromJsonReturnsFormatWithDefaultIndentIfJsonIsWithoutIndent( /** * @return \Generator> */ - public function providerEncodedWithoutIndent(): \Generator + public function provideEncodedWithoutIndent(): \Generator { $values = [ 'array-empty' => '[]', @@ -162,7 +162,7 @@ public function providerEncodedWithoutIndent(): \Generator } /** - * @dataProvider providerWhitespaceWithoutNewLine + * @dataProvider provideWhitespaceWithoutNewLine */ public function testFromFormatReturnsFormatWithoutFinalNewLineIfThereIsNoFinalNewLine(string $actualWhitespace): void { @@ -186,7 +186,7 @@ public function testFromFormatReturnsFormatWithoutFinalNewLineIfThereIsNoFinalNe /** * @return \Generator> */ - public function providerWhitespaceWithoutNewLine(): \Generator + public function provideWhitespaceWithoutNewLine(): \Generator { $characters = [ ' ', @@ -205,7 +205,7 @@ public function providerWhitespaceWithoutNewLine(): \Generator } /** - * @dataProvider providerWhitespaceWithNewLine + * @dataProvider provideWhitespaceWithNewLine */ public function testFromFormatReturnsFormatWithFinalNewLineIfThereIsAtLeastOneFinalNewLine(string $actualWhitespace): void { @@ -229,7 +229,7 @@ public function testFromFormatReturnsFormatWithFinalNewLineIfThereIsAtLeastOneFi /** * @return \Generator> */ - public function providerWhitespaceWithNewLine(): \Generator + public function provideWhitespaceWithNewLine(): \Generator { $characters = [ '', diff --git a/test/Unit/Format/IndentTest.php b/test/Unit/Format/IndentTest.php index 41e42410..e3cd9802 100644 --- a/test/Unit/Format/IndentTest.php +++ b/test/Unit/Format/IndentTest.php @@ -44,7 +44,7 @@ public function testConstants(): void } /** - * @dataProvider providerInvalidSize + * @dataProvider provideInvalidSize */ public function testFromSizeAndStyleRejectsInvalidSize(int $size): void { @@ -61,7 +61,7 @@ public function testFromSizeAndStyleRejectsInvalidSize(int $size): void /** * @return \Generator> */ - public function providerInvalidSize(): \Generator + public function provideInvalidSize(): \Generator { $sizes = [ 'int-zero' => 0, @@ -92,7 +92,7 @@ public function testFromSizeAndStyleRejectsInvalidStyle(): void } /** - * @dataProvider providerSizeStyleAndIndentString + * @dataProvider provideSizeStyleAndIndentString */ public function testFromSizeAndStyleReturnsIndent(int $size, string $style, string $string): void { @@ -107,7 +107,7 @@ public function testFromSizeAndStyleReturnsIndent(int $size, string $style, stri /** * @return \Generator */ - public function providerSizeStyleAndIndentString(): \Generator + public function provideSizeStyleAndIndentString(): \Generator { foreach (self::sizes() as $key => $size) { foreach (Indent::CHARACTERS as $style => $character) { @@ -126,7 +126,7 @@ public function providerSizeStyleAndIndentString(): \Generator } /** - * @dataProvider providerInvalidIndentString + * @dataProvider provideInvalidIndentString */ public function testFromStringRejectsInvalidIndentString(string $string): void { @@ -138,7 +138,7 @@ public function testFromStringRejectsInvalidIndentString(string $string): void /** * @return \Generator> */ - public function providerInvalidIndentString(): \Generator + public function provideInvalidIndentString(): \Generator { $strings = [ 'string-not-whitespace' => self::faker()->sentence, @@ -154,7 +154,7 @@ public function providerInvalidIndentString(): \Generator } /** - * @dataProvider providerValidIndentString + * @dataProvider provideValidIndentString */ public function testFromStringReturnsIndent(string $string): void { @@ -166,7 +166,7 @@ public function testFromStringReturnsIndent(string $string): void /** * @return \Generator> */ - public function providerValidIndentString(): \Generator + public function provideValidIndentString(): \Generator { foreach (self::sizes() as $key => $size) { foreach (Indent::CHARACTERS as $style => $character) { @@ -183,8 +183,8 @@ public function providerValidIndentString(): \Generator } /** - * @dataProvider providerMixedIndentAndSniffedIndent - * @dataProvider providerPureIndentAndSniffedIndent + * @dataProvider provideMixedIndentAndSniffedIndent + * @dataProvider providePureIndentAndSniffedIndent */ public function testFromJsonReturnsIndentSniffedFromArray(string $actualIndent, string $sniffedIndent): void { @@ -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 { @@ -231,7 +231,7 @@ public function testFromJsonReturnsIndentSniffedFromObject(string $actualIndent, /** * @return \Generator> */ - public function providerPureIndentAndSniffedIndent(): \Generator + public function providePureIndentAndSniffedIndent(): \Generator { $sizes = [ 1, @@ -262,7 +262,7 @@ public function providerPureIndentAndSniffedIndent(): \Generator /** * @return \Generator> */ - public function providerMixedIndentAndSniffedIndent(): \Generator + public function provideMixedIndentAndSniffedIndent(): \Generator { $mixedIndents = [ 'space-and-tab' => [ diff --git a/test/Unit/Format/JsonEncodeOptionsTest.php b/test/Unit/Format/JsonEncodeOptionsTest.php index 0ac215ad..00255b2f 100644 --- a/test/Unit/Format/JsonEncodeOptionsTest.php +++ b/test/Unit/Format/JsonEncodeOptionsTest.php @@ -32,7 +32,7 @@ final class JsonEncodeOptionsTest extends Framework\TestCase use Helper; /** - * @dataProvider providerInvalidValue + * @dataProvider provideInvalidValue */ public function testFromIntRejectsInvalidValue(int $value): void { @@ -44,7 +44,7 @@ public function testFromIntRejectsInvalidValue(int $value): void /** * @return \Generator> */ - public function providerInvalidValue(): \Generator + public function provideInvalidValue(): \Generator { $values = [ 'int-minus-one' => -1, @@ -59,7 +59,7 @@ public function providerInvalidValue(): \Generator } /** - * @dataProvider providerValidValue + * @dataProvider provideValidValue */ public function testFromIntReturnsJsonEncodeOptions(int $value): void { @@ -71,7 +71,7 @@ public function testFromIntReturnsJsonEncodeOptions(int $value): void /** * @return \Generator> */ - public function providerValidValue(): \Generator + public function provideValidValue(): \Generator { $values = [ 'int-zero' => 0, @@ -86,7 +86,7 @@ public function providerValidValue(): \Generator } /** - * @dataProvider providerJsonEncodeOptionsAndEncoded + * @dataProvider provideJsonEncodeOptionsAndEncoded */ public function testFromJsonReturnsJsonEncodeOptions(int $value, string $encoded): void { @@ -100,7 +100,7 @@ public function testFromJsonReturnsJsonEncodeOptions(int $value, string $encoded /** * @return array */ - public function providerJsonEncodeOptionsAndEncoded(): array + public function provideJsonEncodeOptionsAndEncoded(): array { return [ [ diff --git a/test/Unit/Format/NewLineTest.php b/test/Unit/Format/NewLineTest.php index 3af18346..4252fd4e 100644 --- a/test/Unit/Format/NewLineTest.php +++ b/test/Unit/Format/NewLineTest.php @@ -29,7 +29,7 @@ final class NewLineTest extends Framework\TestCase { /** - * @dataProvider providerInvalidNewLineString + * @dataProvider provideInvalidNewLineString */ public function testFromStringRejectsInvalidNewLineString(string $string): void { @@ -41,7 +41,7 @@ public function testFromStringRejectsInvalidNewLineString(string $string): void /** * @return \Generator> */ - public function providerInvalidNewLineString(): \Generator + public function provideInvalidNewLineString(): \Generator { $strings = [ "\t", @@ -62,7 +62,7 @@ public function providerInvalidNewLineString(): \Generator } /** - * @dataProvider providerValidNewLineString + * @dataProvider provideValidNewLineString */ public function testFromStringReturnsNewLine(string $string): void { @@ -74,7 +74,7 @@ public function testFromStringReturnsNewLine(string $string): void /** * @return \Generator> */ - public function providerValidNewLineString(): \Generator + public function provideValidNewLineString(): \Generator { $strings = [ "\n", @@ -101,7 +101,7 @@ public function testFromJsonReturnsFormatWithDefaultNewLineIfNoneFound(): void } /** - * @dataProvider providerNewLine + * @dataProvider provideNewLine */ public function testFromFormatReturnsFormatWithNewLineSniffedFromArray(string $newLineString): void { @@ -117,7 +117,7 @@ public function testFromFormatReturnsFormatWithNewLineSniffedFromArray(string $n } /** - * @dataProvider providerNewLine + * @dataProvider provideNewLine */ public function testFromFormatReturnsFormatWithNewLineNewLineSniffedFromObject(string $newLineString): void { @@ -135,7 +135,7 @@ public function testFromFormatReturnsFormatWithNewLineNewLineSniffedFromObject(s /** * @return \Generator> */ - public function providerNewLine(): \Generator + public function provideNewLine(): \Generator { $values = [ "\r\n", diff --git a/test/Unit/JsonEncodeNormalizerTest.php b/test/Unit/JsonEncodeNormalizerTest.php index 6d3b3825..03eb0e03 100644 --- a/test/Unit/JsonEncodeNormalizerTest.php +++ b/test/Unit/JsonEncodeNormalizerTest.php @@ -28,7 +28,7 @@ final class JsonEncodeNormalizerTest extends AbstractNormalizerTestCase { /** - * @dataProvider providerJsonEncodeOptions + * @dataProvider provideJsonEncodeOptions */ public function testNormalizeDecodesAndEncodesJsonWithJsonEncodeOptions(int $jsonEncodeOptions): void { @@ -60,7 +60,7 @@ public function testNormalizeDecodesAndEncodesJsonWithJsonEncodeOptions(int $jso /** * @return \Generator> */ - public function providerJsonEncodeOptions(): \Generator + public function provideJsonEncodeOptions(): \Generator { /** * Could add more, but the idea counts. diff --git a/test/Unit/JsonTest.php b/test/Unit/JsonTest.php index 3edb2dc1..1b374080 100644 --- a/test/Unit/JsonTest.php +++ b/test/Unit/JsonTest.php @@ -44,7 +44,7 @@ public function testFromEncodedRejectsInvalidEncoded(): void } /** - * @dataProvider providerEncoded + * @dataProvider provideEncoded */ public function testFromEncodedReturnsJson(string $encoded): void { @@ -65,7 +65,7 @@ public function testFromEncodedReturnsJson(string $encoded): void /** * @return \Generator> */ - public function providerEncoded(): \Generator + public function provideEncoded(): \Generator { $values = [ 'array-indexed' => [ diff --git a/test/Unit/SchemaNormalizerTest.php b/test/Unit/SchemaNormalizerTest.php index 9f5c47b2..d0456a8b 100644 --- a/test/Unit/SchemaNormalizerTest.php +++ b/test/Unit/SchemaNormalizerTest.php @@ -307,7 +307,7 @@ public function testNormalizeThrowsNormalizedInvalidAccordingToSchemaExceptionWh } /** - * @dataProvider providerExpectedEncodedAndSchemaUri + * @dataProvider provideExpectedEncodedAndSchemaUri */ public function testNormalizeNormalizes(string $expected, string $encoded, string $schemaUri): void { @@ -327,7 +327,7 @@ public function testNormalizeNormalizes(string $expected, string $encoded, strin /** * @return \Generator> */ - public function providerExpectedEncodedAndSchemaUri(): \Generator + public function provideExpectedEncodedAndSchemaUri(): \Generator { $basePath = __DIR__ . '/../'; diff --git a/test/Unit/Vendor/Composer/AbstractComposerTestCase.php b/test/Unit/Vendor/Composer/AbstractComposerTestCase.php index 1330011f..d3dad985 100644 --- a/test/Unit/Vendor/Composer/AbstractComposerTestCase.php +++ b/test/Unit/Vendor/Composer/AbstractComposerTestCase.php @@ -23,7 +23,7 @@ abstract class AbstractComposerTestCase extends AbstractNormalizerTestCase { /** - * @dataProvider providerJsonNotDecodingToObject + * @dataProvider provideJsonNotDecodingToObject */ final public function testNormalizeDoesNotModifyWhenJsonDecodedIsNotAnObject(string $encoded): void { @@ -45,7 +45,7 @@ final public function testNormalizeDoesNotModifyWhenJsonDecodedIsNotAnObject(str /** * @return \Generator> */ - final public function providerJsonNotDecodingToObject(): \Generator + final public function provideJsonNotDecodingToObject(): \Generator { $faker = self::faker(); diff --git a/test/Unit/Vendor/Composer/ConfigHashNormalizerTest.php b/test/Unit/Vendor/Composer/ConfigHashNormalizerTest.php index 6bda1aef..25d31b62 100644 --- a/test/Unit/Vendor/Composer/ConfigHashNormalizerTest.php +++ b/test/Unit/Vendor/Composer/ConfigHashNormalizerTest.php @@ -46,7 +46,7 @@ public function testNormalizeDoesNotModifyOtherProperty(): void } /** - * @dataProvider providerProperty + * @dataProvider provideProperty */ public function testNormalizeIgnoresEmptyConfigHash(string $property): void { @@ -66,7 +66,7 @@ public function testNormalizeIgnoresEmptyConfigHash(string $property): void } /** - * @dataProvider providerProperty + * @dataProvider provideProperty */ public function testNormalizeSortsConfigHashIfPropertyExists(string $property): void { @@ -110,7 +110,7 @@ public function testNormalizeSortsConfigHashIfPropertyExists(string $property): /** * @return \Generator> */ - public function providerProperty(): \Generator + public function provideProperty(): \Generator { foreach (self::properties() as $value) { yield $value => [ diff --git a/test/Unit/Vendor/Composer/PackageHashNormalizerTest.php b/test/Unit/Vendor/Composer/PackageHashNormalizerTest.php index 7d7478b5..ef8c4c92 100644 --- a/test/Unit/Vendor/Composer/PackageHashNormalizerTest.php +++ b/test/Unit/Vendor/Composer/PackageHashNormalizerTest.php @@ -46,7 +46,7 @@ public function testNormalizeDoesNotModifyOtherProperty(): void } /** - * @dataProvider providerProperty + * @dataProvider provideProperty */ public function testNormalizeIgnoresEmptyPackageHash(string $property): void { @@ -66,7 +66,7 @@ public function testNormalizeIgnoresEmptyPackageHash(string $property): void } /** - * @dataProvider providerProperty + * @dataProvider provideProperty */ public function testNormalizeSortsPackageHashIfPropertyExists(string $property): void { @@ -118,7 +118,7 @@ public function testNormalizeSortsPackageHashIfPropertyExists(string $property): /** * @return \Generator> */ - public function providerProperty(): \Generator + public function provideProperty(): \Generator { foreach (self::propertiesWhereKeysOfHashArePackages() as $value) { yield $value => [ diff --git a/test/Unit/Vendor/Composer/VersionConstraintNormalizerTest.php b/test/Unit/Vendor/Composer/VersionConstraintNormalizerTest.php index ed211ce7..0803bb34 100644 --- a/test/Unit/Vendor/Composer/VersionConstraintNormalizerTest.php +++ b/test/Unit/Vendor/Composer/VersionConstraintNormalizerTest.php @@ -26,7 +26,7 @@ final class VersionConstraintNormalizerTest extends AbstractComposerTestCase { /** - * @dataProvider providerVersionConstraint + * @dataProvider provideVersionConstraint */ public function testNormalizeDoesNotModifyOtherProperty(string $constraint): void { @@ -50,7 +50,7 @@ public function testNormalizeDoesNotModifyOtherProperty(string $constraint): voi /** * @return \Generator> */ - public function providerVersionConstraint(): \Generator + public function provideVersionConstraint(): \Generator { foreach (\array_keys(self::versionConstraints()) as $versionConstraint) { yield [ @@ -60,7 +60,7 @@ public function providerVersionConstraint(): \Generator } /** - * @dataProvider providerProperty + * @dataProvider provideProperty */ public function testNormalizeIgnoresEmptyPackageHash(string $property): void { @@ -82,7 +82,7 @@ public function testNormalizeIgnoresEmptyPackageHash(string $property): void /** * @return \Generator> */ - public function providerProperty(): \Generator + public function provideProperty(): \Generator { $properties = self::propertiesWhereValuesOfHashAreVersionConstraints(); @@ -94,7 +94,7 @@ public function providerProperty(): \Generator } /** - * @dataProvider providerPropertyAndVersionConstraint + * @dataProvider providePropertyAndVersionConstraint */ public function testNormalizeNormalizesVersionConstraints(string $property, string $versionConstraint, string $normalizedVersionConstraint): void { @@ -128,7 +128,7 @@ public function testNormalizeNormalizesVersionConstraints(string $property, stri /** * @return \Generator> */ - public function providerPropertyAndVersionConstraint(): \Generator + public function providePropertyAndVersionConstraint(): \Generator { $properties = self::propertiesWhereValuesOfHashAreVersionConstraints(); $versionConstraints = self::versionConstraints(); @@ -145,7 +145,7 @@ public function providerPropertyAndVersionConstraint(): \Generator } /** - * @dataProvider providerPropertyAndUntrimmedVersionConstraint + * @dataProvider providePropertyAndUntrimmedVersionConstraint */ public function testNormalizeNormalizesTrimsVersionConstraints(string $property, string $versionConstraint, string $trimmedVersionConstraint): void { @@ -179,7 +179,7 @@ public function testNormalizeNormalizesTrimsVersionConstraints(string $property, /** * @return \Generator> */ - public function providerPropertyAndUntrimmedVersionConstraint(): \Generator + public function providePropertyAndUntrimmedVersionConstraint(): \Generator { $spaces = [ '',