Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function testSetAndGetOneValue( $value ) { |
||
19 | $key = 'foo'; |
||
20 | |||
21 | $cache = new SimpleInMemoryCache(); |
||
22 | |||
23 | $this->assertFalse( $cache->has( $key ) ); |
||
24 | |||
25 | $cache->set( $key, $value ); |
||
26 | |||
27 | $this->assertEquals( |
||
28 | $value, |
||
29 | $cache->get( $key ) |
||
30 | ); |
||
31 | |||
32 | $this->assertTrue( $cache->has( $key ) ); |
||
33 | } |
||
34 | |||
54 |