public testGetSetAlgorithmResolve ( string $algorithm, string $hashType ) | ||
$algorithm | string | Algorithm string (from JWT spec) |
$hashType | string | Algorithm the type resolves to |
public function testGetSetAlgorithmResolve($algorithm, $hashType)
{
$header = new Header('testkey', $algorithm);
$this->assertEquals($header->getAlgorithm(true), $hashType);
}