Beispiel #1
0
 public function setUp()
 {
     $this->_originaltimezone = date_default_timezone_get();
     date_default_timezone_set('Europe/Paris');
     $this->_cache = CacheFactory::adapterFactory('memory', array('memory_limit' => 0));
     DateObjectTestHelper::setOptions(array('cache' => $this->_cache));
 }
Beispiel #2
0
 public function setUp()
 {
     $this->originalTimezone = date_default_timezone_get();
     date_default_timezone_set('Europe/Paris');
     $this->_cache = Cache::factory('Core', 'File', array('lifetime' => 120, 'automatic_serialization' => true), array('cache_dir' => dirname(__FILE__) . '/../_files/'));
     DateObjectTestHelper::setOptions(array('cache' => $this->_cache));
 }
Beispiel #3
0
 public function setUp()
 {
     $this->_originaltimezone = date_default_timezone_get();
     date_default_timezone_set('Europe/Paris');
     $this->_cache = CacheFactory::factory(array('adapter' => array('name' => 'filesystem', 'options' => array('ttl' => 120)), 'plugins' => array(array('name' => 'serializer', 'options' => array('serializer' => 'php_serialize')))));
     DateObjectTestHelper::setOptions(array('cache' => $this->_cache));
 }