| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class FactoryTest extends TestCase |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @test |
||
| 15 | */ |
||
| 16 | public function it_creates_key() |
||
| 17 | { |
||
| 18 | $key = (new Factory(new FixedGenerator('XYZ')))->createKey('john.doe', 600); |
||
| 19 | |||
| 20 | $this->assertEquals('XYZ', $key->key()); |
||
| 21 | $this->assertEquals('john.doe', $key->identity()); |
||
| 22 | $this->assertEquals(600, $key->ttl()); |
||
| 23 | } |
||
| 25 |