示例#1
0
 public function testWildcharCharset()
 {
     $acceptHeader = new AcceptCharset();
     $acceptHeader->addCharset('iso-8859-5', 0.8)->addCharset('*', 0.4);
     $this->assertTrue($acceptHeader->hasCharset('iso-8859-5'));
     $this->assertTrue($acceptHeader->hasCharset('unicode-1-1'));
     $this->assertEquals('Accept-Charset: iso-8859-5;q=0.8, *;q=0.4', $acceptHeader->toString());
 }