/**
  *
  */
 public function setup()
 {
     // Set up connection manager
     $configs = ['sqlite' => ['dsn' => 'sqlite::memory:', 'log_queries' => true, 'queries' => ["PRAGMA encoding = 'UTF-8'"]]];
     $this->connectionManager = new ConnectionManager('sqlite', $configs);
     // Load test database into memory
     $sql = file_get_contents(__DIR__ . '/sqlite.sql');
     $this->connectionManager->connection()->getPDO()->exec($sql);
     // Set the connection manager
     TestOrm::setConnectionManager($this->connectionManager);
 }
Example #2
0
 /**
  *
  */
 public function setup()
 {
     parent::setup();
     // Set the connection manager
     TestOrm::setConnectionManager($this->connectionManager);
 }