public function testCanConstructCachedListLookup()
 {
     $instance = new SQLStoreFactory($this->store);
     $listLookup = $this->getMockBuilder('\\SMW\\SQLStore\\ListLookup')->disableOriginalConstructor()->getMock();
     $this->assertInstanceOf('SMW\\SQLStore\\ListLookup\\CachedListLookup', $instance->newCachedListLookup($listLookup, true, 42));
 }
示例#2
0
 public function getStatistics()
 {
     $cachedListLookup = $this->factory->newCachedListLookup($this->factory->newUsageStatisticsListLookup(), self::$configuration->get('smwgStatisticsCache'), self::$configuration->get('smwgStatisticsCacheExpiry'));
     return $cachedListLookup->fetchList();
 }