1 | <?php |
||
11 | class AbstractStorageTest extends \PHPUnit\Framework\TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @var \DateInterval |
||
15 | */ |
||
16 | public $ttl; |
||
17 | |||
18 | /** |
||
19 | * @var AbstractStorageMock |
||
20 | */ |
||
21 | public $abstractStorage; |
||
22 | |||
23 | /** |
||
24 | * AbstractStorage Setup. |
||
25 | * AbstractStorageMock simply extends AbstractStorage. |
||
26 | */ |
||
27 | public function setUp() |
||
32 | |||
33 | /** |
||
34 | * Test immutable setter AbstractStorage::withTtl |
||
35 | */ |
||
36 | public function testWithTtl(){ |
||
41 | |||
42 | /** |
||
43 | * Test getter AbstractStorage::getTtl |
||
44 | */ |
||
45 | public function testGetTtl(){ |
||
49 | |||
50 | /** |
||
51 | * Get get ttl when provided with null |
||
52 | */ |
||
53 | public function testGetTtlTimestampWhenNull(){ |
||
60 | |||
61 | /** |
||
62 | * Test get ttl when provided with an integer. |
||
63 | */ |
||
64 | public function testGetTtlTimestampWhenInt(){ |
||
69 | } |
||
70 |