@@ 22-33 (lines=12) @@ | ||
19 | */ |
|
20 | private $verifier; |
|
21 | ||
22 | public function setUp() |
|
23 | { |
|
24 | $this->payload = $this->getMockBuilder('Emarref\Jwt\Token\Payload')->getMock(); |
|
25 | ||
26 | $this->token = $this->getMockBuilder('Emarref\Jwt\Token')->getMock(); |
|
27 | ||
28 | $this->token->expects($this->any()) |
|
29 | ->method('getPayload') |
|
30 | ->will($this->returnValue($this->payload)); |
|
31 | ||
32 | $this->verifier = new ExpirationVerifier(); |
|
33 | } |
|
34 | ||
35 | public function testMissingExpiry() |
|
36 | { |
@@ 24-35 (lines=12) @@ | ||
21 | */ |
|
22 | private $verifier; |
|
23 | ||
24 | public function setUp() |
|
25 | { |
|
26 | $this->payload = $this->getMockBuilder('Emarref\Jwt\Token\Payload')->getMock(); |
|
27 | ||
28 | $this->token = $this->getMockBuilder('Emarref\Jwt\Token')->getMock(); |
|
29 | ||
30 | $this->token->expects($this->any()) |
|
31 | ->method('getPayload') |
|
32 | ->will($this->returnValue($this->payload)); |
|
33 | ||
34 | $this->verifier = new NotBeforeVerifier(); |
|
35 | } |
|
36 | ||
37 | public function testMissingNotBefore() |
|
38 | { |