Psecio\Jwt\HeaderTest::testGetSetAlgorithmResolve PHP Method

testGetSetAlgorithmResolve() public method

Test that the right hash resolution is returned
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);
    }