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

@@ -31,7 +31,7 @@ use PHPUnit\Framework\TestCase;
abstract class IntervalTestCase extends TestCase
{
public static function provider(): Generator
public static function provider(): iterable
{
$intervals = static::provideIntervals();
/** @var IntervalProvider $interval */
@@ -52,7 +52,7 @@ abstract class IntervalTestCase extends TestCase
public function testGivenAnEpochWhenCallTheNextDateThenReturnsTheExpectedDateSuccessful(IntervalProvider $provider): void
{
$period = static::factory()->nextDate($provider->epoch);
$this->assertEquals($provider->expected->toDateString(), $period->toDateString());
self::assertSame($provider->expected->toDateString(), $period->toDateString());
}
abstract public static function factory(): Interval;