1 | <?php |
||
7 | class CsrfTokenTest extends \PHPUnit_Framework_TestCase |
||
8 | { |
||
9 | /** |
||
10 | * @covers OpCacheGUI\Security\CsrfToken::__construct |
||
11 | * @covers OpCacheGUI\Security\CsrfToken::get |
||
12 | */ |
||
13 | public function testGetWhenAlreadyStored() |
||
23 | |||
24 | /** |
||
25 | * @covers OpCacheGUI\Security\CsrfToken::__construct |
||
26 | * @covers OpCacheGUI\Security\CsrfToken::get |
||
27 | * @covers OpCacheGUI\Security\CsrfToken::generate |
||
28 | */ |
||
29 | public function testGetWhenNotStored() |
||
42 | |||
43 | /** |
||
44 | * @covers OpCacheGUI\Security\CsrfToken::__construct |
||
45 | * @covers OpCacheGUI\Security\CsrfToken::validate |
||
46 | * @covers OpCacheGUI\Security\CsrfToken::get |
||
47 | */ |
||
48 | public function testValidateValid() |
||
58 | |||
59 | /** |
||
60 | * @covers OpCacheGUI\Security\CsrfToken::__construct |
||
61 | * @covers OpCacheGUI\Security\CsrfToken::validate |
||
62 | * @covers OpCacheGUI\Security\CsrfToken::get |
||
63 | */ |
||
64 | public function testValidateNotValid() |
||
74 | } |
||
75 |