Esempio n. 1
0
 protected function setUp()
 {
     parent::setUp();
     $this->bag = new MetadataBag();
     $this->array = array(MetadataBag::CREATED => 1234567, MetadataBag::UPDATED => 12345678, MetadataBag::LIFETIME => 0);
     $this->bag->initialize($this->array);
 }
 protected function setUp()
 {
     parent::setUp();
     if (version_compare(phpversion('memcached'), '2.2.0', '>=')) {
         $this->markTestSkipped('Tests can only be run with memcached extension 2.1.0 or lower');
     }
     $this->memcached = $this->getMock('Memcached');
     $this->storage = new MemcachedSessionHandler($this->memcached, array('prefix' => self::PREFIX, 'expiretime' => self::TTL));
 }
 protected function setUp()
 {
     parent::setUp();
     $this->memcache = $this->getMock('Memcache');
     $this->storage = new MemcacheSessionHandler($this->memcache, array('prefix' => self::PREFIX, 'expiretime' => self::TTL));
 }