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

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

public testNotBefore ( )
    public function testNotBefore()
    {
        $dateTime = new \DateTime('1 day');
        $notBeforeClaim = $this->getMockBuilder('Emarref\\Jwt\\Claim\\NotBefore')->getMock();
        $notBeforeClaim->expects($this->exactly(3))->method('getValue')->will($this->returnValue($dateTime->getTimestamp()));
        $this->payload->expects($this->once())->method('findClaimByName')->with(NotBefore::NAME)->will($this->returnValue($notBeforeClaim));
        $this->verifier->verify($this->token);
    }