コード例 #1
0
ファイル: StoreTest.php プロジェクト: raideer/nosqlite.php
 /**
  * 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));
 }
コード例 #2
0
ファイル: NoSQLiteTest.php プロジェクト: raideer/nosqlite.php
 /**
  * @return null
  */
 public function testNewStore()
 {
     $nsl = new NoSQLite(self::DB_FILE);
     $store = $nsl->getStore('test');
     $this->assertEquals(get_class($store), 'NoSQLite\\Store');
 }