Skip to content

Commit

Permalink
Merge pull request #1 from MarjovanLier/small-fixes
Browse files Browse the repository at this point in the history
Refactoring variable name in test method
  • Loading branch information
MarjovanLier authored Feb 16, 2024
2 parents 1cf72ca + 4b193a8 commit 5e115fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/IsValidHourTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function provideHours(): array
*
* @dataProvider provideHours
*/
public function testIsValidHour(int $Hour, bool $expectedResult): void
public function testIsValidHour(int $hour, bool $expectedResult): void
{
$reflectionMethod = (new ReflectionClass(StringManipulation::class))->getMethod('isValidHour');

Expand All @@ -78,7 +78,7 @@ public function testIsValidHour(int $Hour, bool $expectedResult): void
*/
$reflectionMethod->setAccessible(true);

$result = $reflectionMethod->invoke(null, $Hour);
$result = $reflectionMethod->invoke(null, $hour);

self::assertSame($expectedResult, $result);
}
Expand Down

0 comments on commit 5e115fa

Please sign in to comment.