示例#1
0
 /**
  * @param <type> $query
  * @depends testQueryCache_DependsOnHints
  */
 public function testQueryCache_DependsOnMaxResults($query)
 {
     $cache = $query->getQueryCacheDriver();
     $cacheCount = count($cache->getIds());
     $query->setMaxResults(10);
     $query->getResult();
     $this->assertEquals($cacheCount + 1, count($cache->getIds()));
 }
示例#2
0
 /**
  * @param <type> $query
  * @depends testQueryCache_DependsOnHints
  */
 public function testQueryCache_DependsOnMaxResults($query)
 {
     $cache = $query->getQueryCacheDriver();
     $cacheCount = $this->getCacheSize($cache);
     $query->setMaxResults(10);
     $query->getResult();
     $this->assertEquals($cacheCount + 1, $this->getCacheSize($cache));
 }