Example #1
0
 public function testGetHeaderValue()
 {
     $header = array("Content-Type" => "application/json", "x-xiaomi-xx" => array("A", "B", "C"));
     $this->assertEquals("application/json", Signer::getHeaderValue($header, "Content-Type"));
     $this->assertEquals("A", Signer::getHeaderValue($header, "x-xiaomi-xx"));
     $this->assertEquals("", Signer::getHeaderValue($header, "Content-MD5"));
 }