Skip to content

Commit

Permalink
Fix tests: PHP-7.4 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alphp committed Jan 26, 2024
1 parent 6c127a7 commit 7bfa538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/LocaleTests/Locale_en_EN_TestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testLocale_en_EN () {
$this->assertMatchesRegularExpression('~1:02:03 PM|13:02:03~', $result, '%X: Preferred time representation based on locale, without the date');

$result = strftime('%c', '20220306 13:02:03', $locale);
$this->assertEquals('March 6, 2022 at 13:02', $result, '%c: Preferred date and time stamp based on locale');
$this->assertMatchesRegularExpression('~March 6, 2022 at (1:02 PM|13:02)~', $result, '%c: Preferred date and time stamp based on locale');

$result = strftime('%x', '20220306 13:02:03', $locale);
$this->assertEquals('3/6/22', $result, '%x: Preferred date representation based on locale, without the time');
Expand Down
2 changes: 1 addition & 1 deletion tests/LocaleTests/Locale_es_ES_TestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testLocale_es_ES () {
$this->assertEquals('domingo', $result, '%A: A full textual representation of the day');

$result = strftime('%b', '20220306 13:02:03', $locale);
$this->assertEquals('mar', $result, '%b: Abbreviated month name, based on the locale');
$this->assertMatchesRegularExpression('~mar\.?~', $result, '%b: Abbreviated month name, based on the locale');

$result = strftime('%B', '20220306 13:02:03', $locale);
$this->assertEquals('marzo', $result, '%B: Full month name, based on the locale');
Expand Down

0 comments on commit 7bfa538

Please sign in to comment.