| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function testCreateFromString() |
||
| 33 | { |
||
| 34 | $string = 'foobar'; |
||
| 35 | $key = 'a-private-key'; |
||
| 36 | $algo = 'sha256'; |
||
| 37 | $expected = bin2hex(hash_hmac($algo, $string, $key)); |
||
| 38 | |||
| 39 | $actual = $this->token->createFromString($string, $key, $algo); |
||
| 40 | $this->assertEquals($expected, $actual); |
||
| 41 | } |
||
| 42 | |||
| 61 |