1 | <?php |
||
8 | class JwtSessionTest extends \PHPUnit\Framework\TestCase |
||
9 | { |
||
10 | /** |
||
11 | * @var JwtSession |
||
12 | */ |
||
13 | protected $object; |
||
14 | |||
15 | /** |
||
16 | * @var \ByJG\Session\SessionConfig |
||
17 | */ |
||
18 | protected $sessionConfig; |
||
19 | |||
20 | const SESSION_ID = "sessionid"; |
||
21 | |||
22 | protected function setUp() |
||
29 | |||
30 | protected function tearDown() |
||
36 | |||
37 | |||
38 | public function testDestroy() |
||
42 | |||
43 | public function testGc() |
||
47 | |||
48 | public function testClose() |
||
52 | |||
53 | public function dataProvider() |
||
114 | |||
115 | /** |
||
116 | * @dataProvider dataProvider |
||
117 | * @param $input |
||
118 | * @param $expected |
||
119 | */ |
||
120 | public function testSerializeSessionData($input, $expected) |
||
125 | |||
126 | /** |
||
127 | * @dataProvider dataProvider |
||
128 | * @param $expected |
||
129 | * @param $input |
||
130 | * @throws Exception |
||
131 | */ |
||
132 | public function testUnserializeData($expected, $input) |
||
137 | |||
138 | /** |
||
139 | * @dataProvider dataProvider |
||
140 | * @param $object |
||
141 | * @param $serialize |
||
142 | */ |
||
143 | public function testReadWrite($object, $serialize) |
||
149 | |||
150 | } |
||
151 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.