3 class CacheTest
extends BaseTest
9 * @var seekat\API\Cache\Service
14 $this->cache
= new seekat\API\Call\Cache\Service\Hollow
;
19 * @dataProvider provideAPI
21 function testCachesSuccessiveCalls($api) {
22 $m6w6 = $this->assertSuccess($api->users
->m6w6
, null, null, $this->cache
);
23 $data = $this->cache
->getStorage();
24 $m6w6_ = $this->assertSuccess($api->users
->m6w6
, null, null, $this->cache
);
26 $this->assertEquals("m6w6", $m6w6->login
);
27 $this->assertEquals("m6w6", $m6w6_->login
);
29 $this->assertInternalType("array", $data);
30 $this->assertCount(1, $data);
31 $this->assertEquals($data, $this->cache
->getStorage());
36 * @dataProvider provideAPI
38 function testRefreshesStaleCacheEntries($api) {
39 $this->markTestIncomplete("TODO");