Пример #1
0
 /**
  * @test
  */
 public function browserLanguageDetectionWorks()
 {
     $browserPreferredLanguageHeader = 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4';
     $detectedLanguage = $this->subject->getPreferredClientLanguage($browserPreferredLanguageHeader);
     $this->assertSame('de', $detectedLanguage);
 }