@@ -122,7 +122,7 @@ public function testAcceptLanguageBasics(): void
122122 $ this ->assertSame ('en-us ' , $ this ->negotiate ->language (['en-us ' , 'en-gb ' , 'en ' ]));
123123 $ this ->assertSame ('en ' , $ this ->negotiate ->language (['en ' , 'en-us ' , 'en-gb ' ]));
124124
125- config (Feature::class)->simpleNegotiateLocale = false ;
125+ config (Feature::class)->looseLocaleNegotiation = false ;
126126
127127 $ this ->assertSame ('da ' , $ this ->negotiate ->language (['da ' , 'en ' ]));
128128 $ this ->assertSame ('en-gb ' , $ this ->negotiate ->language (['en-gb ' , 'en ' ]));
@@ -142,13 +142,15 @@ public function testAcceptLanguageMatchesBroadly(): void
142142 $ this ->assertSame ('fr-FR ' , $ this ->negotiate ->language (['fr-FR ' , 'fr ' , 'en ' ]));
143143 $ this ->assertSame ('fr-BE ' , $ this ->negotiate ->language (['fr-BE ' , 'fr ' , 'en ' ]));
144144 $ this ->assertSame ('en ' , $ this ->negotiate ->language (['en ' , 'en-US ' ]));
145+ $ this ->assertSame ('fr-BE ' , $ this ->negotiate ->language (['ru ' , 'en-GB ' , 'fr-BE ' ]));
145146
146- config (Feature::class)->simpleNegotiateLocale = false ;
147+ config (Feature::class)->looseLocaleNegotiation = false ;
147148
148149 $ this ->assertSame ('fr-FR ' , $ this ->negotiate ->language (['fr ' , 'fr-FR ' , 'en ' ]));
149150 $ this ->assertSame ('fr-FR ' , $ this ->negotiate ->language (['fr-FR ' , 'fr ' , 'en ' ]));
150151 $ this ->assertSame ('fr ' , $ this ->negotiate ->language (['fr-BE ' , 'fr ' , 'en ' ]));
151152 $ this ->assertSame ('en-US ' , $ this ->negotiate ->language (['en ' , 'en-US ' ]));
153+ $ this ->assertSame ('fr-BE ' , $ this ->negotiate ->language (['ru ' , 'en-GB ' , 'fr-BE ' ]));
152154 }
153155
154156 public function testBestMatchEmpty (): void
0 commit comments