Esempio n. 1
0
 public function testWrite()
 {
     $this->log->err('123');
     $this->log->info('123');
     $count = $this->rediska->getListLength('log');
     $this->assertEquals(2, $count);
 }
Esempio n. 2
0
 public function testNewInstance()
 {
     $application = new Zend_Application('tests', dirname(__FILE__) . '/application4.ini');
     $log = $application->bootstrap()->getBootstrap()->getResource('log');
     $log->err('123');
     $log->info('123');
     $rediska = new Rediska(array('redisVersion' => '2.0', 'addToManager' => false));
     $count = $rediska->getListLength('log');
     $this->assertEquals(2, $count);
     $this->assertEquals(array(), Rediska_Manager::getAll());
 }