public function createEventStore()
 {
     $connection = DriverManager::getConnection(array('driver' => 'pdo_sqlite', 'memory' => true));
     $schemaManager = $connection->getSchemaManager();
     $schema = $schemaManager->createSchema();
     $eventStore = new DBALEventStore($connection, new SimpleInterfaceSerializer(), new SimpleInterfaceSerializer(), 'events');
     $table = $eventStore->configureSchema($schema);
     $schemaManager->createTable($table);
     return $eventStore;
 }
 public function createEventStore()
 {
     if (Version::compare('2.5.0') >= 0) {
         $this->markTestSkipped('Binary type is only available for Doctrine >= v2.5');
     }
     $connection = DriverManager::getConnection(array('driver' => 'pdo_sqlite', 'memory' => true));
     $schemaManager = $connection->getSchemaManager();
     $schema = $schemaManager->createSchema();
     $eventStore = new DBALEventStore($connection, new SimpleInterfaceSerializer(), new SimpleInterfaceSerializer(), 'events', true);
     $this->table = $eventStore->configureSchema($schema);
     $schemaManager->createTable($this->table);
     return $eventStore;
 }