1 | <?php |
||
15 | class EntityDocumentCacheTest extends \PHPUnit_Framework_TestCase { |
||
16 | |||
17 | public function testFetchWithHit() { |
||
18 | $item = new Item( new ItemId( 'Q42' ) ); |
||
19 | |||
20 | $cache = new EntityDocumentCache( new ArrayCache() ); |
||
21 | $cache->save( $item ); |
||
22 | |||
23 | $this->assertEquals( $item, $cache->fetch( new ItemId( 'Q42' ) ) ); |
||
24 | } |
||
25 | |||
26 | public function testFetchWithMiss() { |
||
30 | |||
31 | public function testContainsTrue() { |
||
39 | |||
40 | public function testContainsFalse() { |
||
45 | } |
||
46 |