Пример #1
0
 public function testAddHeader_testHeader()
 {
     $jwt = new Jwt($this->srcJwt, $this->secret);
     $newHeader = ['a' => 1];
     $expectedHeader = array_merge($this->header, $newHeader);
     $this->assertEquals($expectedHeader, $jwt->addHeader(key($newHeader), current($newHeader))->getHeaders()->get());
 }