File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1725,7 +1725,7 @@ public function testGetNames($displayLocale)
1725
1725
sort ($ languages );
1726
1726
1727
1727
$ this ->assertNotEmpty ($ languages );
1728
- $ this ->assertEmpty ( array_diff ($ languages , self ::LANGUAGES ));
1728
+ $ this ->assertSame ([], array_diff ($ languages , self ::LANGUAGES ));
1729
1729
1730
1730
foreach (Languages::getAlpha3Names ($ displayLocale ) as $ alpha3Code => $ name ) {
1731
1731
$ alpha2Code = self ::ALPHA3_TO_ALPHA2 [$ alpha3Code ] ?? null ;
@@ -1928,7 +1928,7 @@ public function testGetAlpha3Names($displayLocale)
1928
1928
sort ($ languages );
1929
1929
1930
1930
$ this ->assertNotEmpty ($ languages );
1931
- $ this ->assertEmpty ( array_diff ($ languages , self ::ALPHA3_CODES ));
1931
+ $ this ->assertSame ([], array_diff ($ languages , self ::ALPHA3_CODES ));
1932
1932
1933
1933
foreach (Languages::getNames ($ displayLocale ) as $ alpha2Code => $ name ) {
1934
1934
$ alpha3Code = self ::ALPHA2_TO_ALPHA3 [$ alpha2Code ] ?? (3 === \strlen ($ alpha2Code ) ? $ alpha2Code : null );
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function testGetNames($displayLocale)
46
46
// We can't assert on exact list of locale, as there's too many variations.
47
47
// The best we can do is to make sure getNames() returns a subset of what getLocales() returns.
48
48
$ this ->assertNotEmpty ($ locales );
49
- $ this ->assertEmpty ( array_diff ($ locales , static ::getLocales ()));
49
+ $ this ->assertSame ([], array_diff ($ locales , static ::getLocales ()));
50
50
}
51
51
52
52
public function testGetNamesDefaultLocale ()
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ public function testGetNames($displayLocale)
254
254
// We can't assert on exact list of scripts, as there's too many variations between locales.
255
255
// The best we can do is to make sure getNames() returns a subset of what getScripts() returns.
256
256
$ this ->assertNotEmpty ($ scripts );
257
- $ this ->assertEmpty ( array_diff ($ scripts , self ::$ scripts ));
257
+ $ this ->assertSame ([], array_diff ($ scripts , self ::$ scripts ));
258
258
}
259
259
260
260
public function testGetNamesDefaultLocale ()
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ public function testGetNames($displayLocale)
473
473
sort ($ zones );
474
474
475
475
$ this ->assertNotEmpty ($ zones );
476
- $ this ->assertEmpty ( array_diff ($ zones , self ::ZONES ));
476
+ $ this ->assertSame ([], array_diff ($ zones , self ::ZONES ));
477
477
}
478
478
479
479
public function testGetNamesDefaultLocale ()
You can’t perform that action at this time.
0 commit comments