Skip to content

Commit

Permalink
[Tests] Streamline
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and nicolas-grekas committed Oct 31, 2023
1 parent ceadb4e commit 15574cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tests/Normalizer/DateIntervalNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ protected function setUp(): void
$this->normalizer = new DateIntervalNormalizer();
}

public static function dataProviderISO()
public static function dataProviderISO(): array
{
$data = [
return [
['P%YY%MM%DDT%HH%IM%SS', 'P00Y00M00DT00H00M00S', 'PT0S'],
['P%yY%mM%dDT%hH%iM%sS', 'P0Y0M0DT0H0M0S', 'PT0S'],
['P%yY%mM%dDT%hH%iM%sS', 'P10Y2M3DT16H5M6S', 'P10Y2M3DT16H5M6S'],
Expand All @@ -46,8 +46,6 @@ public static function dataProviderISO()
['%rP%yY%mM%dD', '-P10Y2M3D', '-P10Y2M3DT0H'],
['%rP%yY%mM%dD', 'P10Y2M3D', 'P10Y2M3DT0H'],
];

return $data;
}

public function testSupportsNormalization()
Expand Down

0 comments on commit 15574cf

Please sign in to comment.