Пример #1
0
 public function setUp()
 {
     $ctl = new Ethna_Controller_Dummy();
     $plugin = $ctl->getPlugin();
     $config = $ctl->getConfig();
     $config->set('plugin', array('cachemanager' => array('memcache' => array('host' => 'localhost', 'port' => 11211, 'use_pconnect' => false, 'retry' => 4, 'timeout' => 5, 'info' => array('namespace1' => array(0 => array('host' => 'cache1.example.com', 'port' => 11211), 1 => array('host' => 'cache2.example.com', 'port' => 11211)))))));
     $this->cm = $plugin->getPlugin('Cachemanager', 'Memcache');
 }
Пример #2
0
 function setUp()
 {
     $ctl = new Ethna_Controller_Dummy();
     $plugin = $ctl->getPlugin();
     $config = $ctl->getConfig();
     $config->set('plugin', array('cachemanager' => array('localfile' => array('test::int_key' => 'miyazakiaoi'))));
     $plugin = $ctl->getPlugin();
     $this->cm = $plugin->getPlugin('Cachemanager', 'Localfile');
 }