Skip to content

Commit 67af777

Browse files
committed
Tests: fixup: restore locale settings between and after localized test cases
1 parent f08cd1f commit 67af777

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/phpunit/tests/date/dateI18n.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,14 @@ public function data_should_handle_dst() {
228228
public function test_adjusts_ordinal_based_on_locale() {
229229
switch_to_locale( 'en_US' );
230230
$this->assertSame( '8th', date_i18n( 'jS', 1733618500 ) );
231+
restore_previous_locale();
231232

232233
switch_to_locale( 'de_DE' );
233234
$this->assertSame( '8.', date_i18n( 'jS', 1733618500 ) );
235+
restore_previous_locale();
234236

235237
switch_to_locale( 'es_ES' );
236238
$this->assertSame( '8.º', date_i18n( 'jS', 1733618500 ) );
239+
restore_previous_locale();
237240
}
238241
}

0 commit comments

Comments
 (0)