mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix code quality and run.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user