Skip to content

Commit bed20f5

Browse files
minor #61390 run tests with PHPUnit 12.3 (xabbuh)
This PR was merged into the 7.4 branch. Discussion ---------- run tests with PHPUnit 12.3 | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT The test updates reflect the following changes in PHPUnit 12.2 and 12.3: - a warning is emitted when a data provider provides data sets that have more values than the test method consuming the data set - the format in which data sets are displayed in test reports has changed affecting the modified test in the PhpUnitBridge (see sebastianbergmann/phpunit#6272) - errors triggered in the `tearDown()` method of skipped tests are no longer silence affecting the modified tests in the Form component where the `$defaultLocale` property is not initialised (see sebastianbergmann/phpunit#6281) Commits ------- cf7e41e1092 run tests with PHPUnit 12.3
2 parents cb829c8 + 2c3b7ed commit bed20f5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tests/Caster/DateCasterTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function tearDown(): void
3939
}
4040

4141
#[DataProvider('provideDateTimes')]
42-
public function testDumpDateTime($time, $timezone, $xDate, $xTimestamp)
42+
public function testDumpDateTime($time, $timezone, $xDate, $xTimestamp, $xInfos)
4343
{
4444
$date = new \DateTime($time, new \DateTimeZone($timezone));
4545

@@ -53,7 +53,7 @@ public function testDumpDateTime($time, $timezone, $xDate, $xTimestamp)
5353
}
5454

5555
#[DataProvider('provideDateTimes')]
56-
public function testDumpDateTimeImmutable($time, $timezone, $xDate, $xTimestamp)
56+
public function testDumpDateTimeImmutable($time, $timezone, $xDate, $xTimestamp, $xInfos)
5757
{
5858
$date = new \DateTimeImmutable($time, new \DateTimeZone($timezone));
5959

@@ -194,7 +194,7 @@ public function testCastDateTimeWithAdditionalChildProperty()
194194
}
195195

196196
#[DataProvider('provideIntervals')]
197-
public function testDumpInterval($intervalSpec, $ms, $invert, $expected)
197+
public function testDumpInterval($intervalSpec, $ms, $invert, $expected, $xSeconds)
198198
{
199199
$interval = $this->createInterval($intervalSpec, $ms, $invert);
200200

@@ -208,7 +208,7 @@ public function testDumpInterval($intervalSpec, $ms, $invert, $expected)
208208
}
209209

210210
#[DataProvider('provideIntervals')]
211-
public function testDumpIntervalExcludingVerbosity($intervalSpec, $ms, $invert, $expected)
211+
public function testDumpIntervalExcludingVerbosity($intervalSpec, $ms, $invert, $expected, $xSeconds)
212212
{
213213
$interval = $this->createInterval($intervalSpec, $ms, $invert);
214214

@@ -291,7 +291,7 @@ public static function provideIntervals()
291291
}
292292

293293
#[DataProvider('provideTimeZones')]
294-
public function testDumpTimeZone($timezone, $expected)
294+
public function testDumpTimeZone($timezone, $expected, $xRegion)
295295
{
296296
$timezone = new \DateTimeZone($timezone);
297297

@@ -305,7 +305,7 @@ public function testDumpTimeZone($timezone, $expected)
305305
}
306306

307307
#[DataProvider('provideTimeZones')]
308-
public function testDumpTimeZoneExcludingVerbosity($timezone, $expected)
308+
public function testDumpTimeZoneExcludingVerbosity($timezone, $expected, $xRegion)
309309
{
310310
$timezone = new \DateTimeZone($timezone);
311311

@@ -378,7 +378,7 @@ public static function provideTimeZones()
378378
}
379379

380380
#[DataProvider('providePeriods')]
381-
public function testDumpPeriod($start, $interval, $end, $options, $expected)
381+
public function testDumpPeriod($start, $interval, $end, $options, $expected, $xDates)
382382
{
383383
$p = new \DatePeriod(new \DateTimeImmutable($start), new \DateInterval($interval), \is_int($end) ? $end : new \DateTime($end), $options);
384384

0 commit comments

Comments
 (0)