| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function testStorageAndRetrieval() { |
||
| 18 | |||
| 19 | $this->assertFalse( |
||
| 20 | $this->cache->contains( 'Foo' ) |
||
| 21 | ); |
||
| 22 | |||
| 23 | $this->cache->save( 'Foo', 'Bar', 42 ); |
||
| 24 | |||
| 25 | $this->assertTrue( |
||
| 26 | $this->cache->contains( 'Foo' ) |
||
| 27 | ); |
||
| 28 | |||
| 29 | $this->assertEquals( |
||
| 30 | 'Bar', |
||
| 31 | $this->cache->fetch( 'Foo' ) |
||
| 32 | ); |
||
| 33 | |||
| 34 | $this->cache->delete( 'Foo' ); |
||
| 35 | |||
| 36 | $this->assertFalse( |
||
| 37 | $this->cache->contains( 'Foo' ) |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 42 |