Emarref\Jwt\Verification\IssuerVerifierTest::testIssuerMismatch PHP Метод

testIssuerMismatch() публичный Метод

public testIssuerMismatch ( )
    public function testIssuerMismatch()
    {
        $issuerClaim = $this->getMockBuilder('Emarref\\Jwt\\Claim\\Issuer')->getMock();
        $issuerClaim->expects($this->once())->method('getValue')->will($this->returnValue('an_issuer'));
        $this->token->expects($this->once())->method('getPayload')->will($this->returnValue($this->payload));
        $this->payload->expects($this->once())->method('findClaimByName')->with(Claim\Issuer::NAME)->will($this->returnValue($issuerClaim));
        $verifier = new IssuerVerifier('some_other_issuer');
        $verifier->verify($this->token);
    }