/** * Test updating earlier set value from a new store without cache * * @return void */ public function testSetExisting() { $key = uniqid(); $value1 = uniqid(); $value2 = uniqid(); $this->store->set($key, $value1); $newStore = $this->nsl->getStore('test'); $newStore->set($key, $value2); $this->assertEquals($value2, $newStore->get($key)); }
/** * @return null */ public function testNewStore() { $nsl = new NoSQLite(self::DB_FILE); $store = $nsl->getStore('test'); $this->assertEquals(get_class($store), 'NoSQLite\\Store'); }