Skip to content

Commit

Permalink
Fix: Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 25, 2023
1 parent 4b641f3 commit eca4e26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<file src="test/Unit/VersionTest.php">
<PossiblyUnusedMethod>
<code>provideInvalidValue</code>
<code>provideValidValue</code>
<code>provideValidValueMajorMinorPatchAndPreRelease</code>
</PossiblyUnusedMethod>
</file>
</files>
4 changes: 2 additions & 2 deletions test/Unit/VersionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static function provideInvalidValue(): \Generator
}
}

#[Framework\Attributes\DataProvider('provideValidValue')]
#[Framework\Attributes\DataProvider('provideValidValueMajorMinorPatchAndPreRelease')]
public function testFromStringReturnsVersion(
string $value,
Major $major,
Expand All @@ -121,7 +121,7 @@ public function testFromStringReturnsVersion(
*
* @return \Generator<string, array{0: string, 1: Major, 2: Minor, 3: Patch, 4: PreRelease}>
*/
public static function provideValidValue(): \Generator
public static function provideValidValueMajorMinorPatchAndPreRelease(): \Generator
{
$values = [
'0.0.4' => [
Expand Down

0 comments on commit eca4e26

Please sign in to comment.