public function testMultipleInstances()
 {
     $storage1 = new LegacyPdoSessionHandler($this->pdo, array('db_table' => 'sessions'));
     $storage1->write('foo', 'bar');
     $storage2 = new LegacyPdoSessionHandler($this->pdo, array('db_table' => 'sessions'));
     $this->assertEquals('bar', $storage2->read('foo'), 'values persist between instances');
 }
 public function testNewSessionCreated()
 {
     $this->assertEquals(self::$SESSION_DATA_EMPTY, $this->migrationSession->read(self::$SESSION_ID));
     $this->assertEquals(self::$SESSION_DATA_EMPTY, $this->legacySessionTable->read(self::$SESSION_ID));
     $this->assertEquals(self::$SESSION_DATA_EMPTY, $this->sessionTable->read(self::$SESSION_ID));
 }