public function testGetSetData()
 {
     $file = self::DIR . "/test.sync";
     $storage = new StorageFile($file);
     $shared = new SharedMemory($storage);
     $data = new \stdClass();
     $data->hello = 'world';
     $data->foo = 'bar';
     $shared->setData($data);
     $this->assertEquals('world', $shared->get('hello'));
     $this->assertEquals('bar', $shared->get('foo'));
     $data = $shared->getData();
     $this->assertEquals('world', $data->hello);
     $this->assertEquals('bar', $data->foo);
     $data->test = "ok";
     $this->assertFalse($shared->has('test'));
 }