Total Complexity | 5 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class BasicTest extends AStorageTest |
||
11 | { |
||
12 | /** |
||
13 | * @throws CacheException |
||
14 | */ |
||
15 | public function testRun(): void |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @throws CacheException |
||
31 | */ |
||
32 | public function testNotExists(): void |
||
33 | { |
||
34 | $lib = new Storage\Basic($this->getStorage(new \MockKillingStorage3())); |
||
35 | $lib->init(''); |
||
36 | $this->expectException(CacheException::class); |
||
37 | $lib->exists(); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @throws CacheException |
||
42 | */ |
||
43 | public function testNotSet(): void |
||
44 | { |
||
45 | $lib = new Storage\Basic($this->getStorage(new \MockKillingStorage2())); |
||
46 | $lib->init(''); |
||
47 | $this->expectException(CacheException::class); |
||
48 | $lib->set('lkjhgfdsa'); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @throws CacheException |
||
53 | */ |
||
54 | public function testNotGet(): void |
||
55 | { |
||
56 | $lib = new Storage\Basic($this->getStorage(new \MockKillingStorage2())); |
||
57 | $lib->init(''); |
||
58 | $this->expectException(CacheException::class); |
||
59 | $lib->get(); |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @throws CacheException |
||
64 | */ |
||
65 | public function testNotClear(): void |
||
71 | } |
||
72 | } |
||
73 |