Exemplo n.º 1
0
 public function testResetCacheShouldBeSet()
 {
     $res = array('class' => 'RIQBase', 'cache' => array(), 'cache_index' => 0, 'page_index' => 0, 'page_length' => 200, 'fetch_options' => array(), 'last_modified_date' => None, 'parent' => null);
     RIQBase::resetCache();
     $expe = var_export($res, true);
     $resu = RIQBase::getVarsClass();
     $this->assertEquals($expe, $resu);
 }
Exemplo n.º 2
0
 public static function setFetchOptions($options = [])
 {
     RIQBase::resetCache();
     self::$fetch_options = $options;
 }