public function testIncrementWithScope() { $adapter = new Memcache(array('scope' => 'primary')); $this->_conn->set('primary:key1', 1, 60); $this->_conn->set('key1', 1, 60); $adapter->increment('key1'); $expected = 1; $result = $this->_conn->get('key1'); $this->assertEqual($expected, $result); $expected = 2; $result = $this->_conn->get('primary:key1'); $this->assertEqual($expected, $result); }