Lcobucci\JWT\Signer\HmacTest::createHashMustReturnAHashAccordingWithTheAlgorithm PHP Method

createHashMustReturnAHashAccordingWithTheAlgorithm() public method

    public function createHashMustReturnAHashAccordingWithTheAlgorithm() : string
    {
        $hash = hash_hmac('sha256', 'test', '123', true);
        self::assertEquals($hash, $this->signer->createHash('test', new Key('123')));
        return $hash;
    }