chore: upgrade phpunit to 12.5
This commit is contained in:
1 parent
da039d0527
commit
849da8d471
53 files changed
+832
-856
No files matched your search
@@ -14,9 +14,7 @@ class SeasonCalendarTest extends TestCase
|
||||
return new SeasonCalendar('11-01', '04-01');
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider winterDates
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\DataProvider('winterDates')]
|
||||
public function testSeasonYearForTheWrappingWinterWindow(string $date, ?int $expected): void
|
||||
{
|
||||
$this->assertSame($expected, $this->winter()->seasonYearFor(new \DateTimeImmutable($date)));
|
||||
@@ -44,9 +42,7 @@ class SeasonCalendarTest extends TestCase
|
||||
$this->assertSame('außerhalb der Saison', $calendar->label(null));
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider summerDates
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\DataProvider('summerDates')]
|
||||
public function testSeasonYearForANonWrappingWindow(string $date, ?int $expected): void
|
||||
{
|
||||
$calendar = new SeasonCalendar('06-01', '09-01');
|
||||
@@ -71,9 +67,7 @@ class SeasonCalendarTest extends TestCase
|
||||
(new SeasonCalendar('xx-yy', '04-01'))->seasonYearFor(new \DateTimeImmutable('2025-01-01'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider currentOrUpcomingDates
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\DataProvider('currentOrUpcomingDates')]
|
||||
public function testCurrentOrUpcomingSeasonYear(string $date, int $expected): void
|
||||
{
|
||||
$this->assertSame(
|
||||
@@ -117,9 +111,7 @@ class SeasonCalendarTest extends TestCase
|
||||
$this->assertSame('2025-09-30', $end->format('Y-m-d'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider provideUpcomingSeasonDates
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\DataProvider('provideUpcomingSeasonDates')]
|
||||
public function testTheCurrentOrUpcomingSeasonYear(string $date, int $expected): void
|
||||
{
|
||||
$calendar = new SeasonCalendar('11-01', '04-01');
|
||||
|
||||
@@ -31,9 +31,7 @@ class SeasonTaskTest extends TestCase
|
||||
$this->assertSame($labels, array_unique($labels));
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider entries
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\DataProvider('entries')]
|
||||
public function testTheAgreedEntryList(
|
||||
SeasonTask $task,
|
||||
string $label,
|
||||
|
||||
Reference in new issue
Block a user