Skip to content

Commit

Permalink
Fix DateTime century test
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-doehring committed Oct 16, 2022
1 parent b9388bf commit f1e63e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/Faker/Core/DateTimeTest.php
Expand Up @@ -215,7 +215,10 @@ public function testCentury()
$century = $this->extension->century();

self::assertIsString($century);
self::assertEquals('XIX', $century);
self::assertContains(
$century,
['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX', 'XXI']
);
}

public function testTimezone()
Expand Down

0 comments on commit f1e63e1

Please sign in to comment.