Fix code quality and run.

This commit is contained in:
James Cole
2023-11-04 14:26:35 +01:00
parent bcf1e4dc13
commit 7436f94feb
15 changed files with 96 additions and 95 deletions

View File

@@ -42,7 +42,7 @@ class NavigationPreferredCarbonFormatByPeriodTest extends TestCase
$this->navigation = new Navigation();
}
public static function providePeriods(): array
public static function providePeriods(): iterable
{
return [
'unknown' => ['period' => '1day', 'expected' => 'Y-m-d'],
@@ -60,6 +60,6 @@ class NavigationPreferredCarbonFormatByPeriodTest extends TestCase
public function testGivenAPeriodWhenCallPreferredCarbonFormatByPeriodThenReturnsExpectedFormat(string $period, string $expected)
{
$formatPeriod = $this->navigation->preferredCarbonFormatByPeriod($period);
$this->assertEquals($expected, $formatPeriod);
self::assertSame($expected, $formatPeriod);
}
}