Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function testRun(): void |
||
16 | { |
||
17 | $lib = new Storage\Basic($this->getStorage(new \MockStorage())); |
||
18 | $lib->init(''); |
||
19 | |||
20 | $this->assertFalse($lib->exists()); |
||
21 | $this->assertEquals('', $lib->get()); |
||
22 | $this->assertTrue($lib->set(static::TESTING_CONTENT)); |
||
23 | $this->assertTrue($lib->exists()); |
||
24 | $this->assertEquals(static::TESTING_CONTENT, $lib->get()); |
||
25 | $lib->clear(); |
||
26 | $this->assertFalse($lib->exists()); |
||
27 | } |
||
73 |