Emarref\Jwt\Verification\NotBeforeVerifierTest::testUnexpectedValue PHP Метод

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

public testUnexpectedValue ( )
    public function testUnexpectedValue()
    {
        $notBeforeClaim = $this->getMockBuilder('Emarref\\Jwt\\Claim\\NotBefore')->getMock();
        $notBeforeClaim->expects($this->exactly(2))->method('getValue')->will($this->returnValue('foobar'));
        $this->payload->expects($this->once())->method('findClaimByName')->with(NotBefore::NAME)->will($this->returnValue($notBeforeClaim));
        $this->verifier->verify($this->token);
    }