public function setUp()
 {
     $factory = new \Database\Connectors\ConnectionFactory();
     $configs = (include __DIR__ . '/config.php');
     foreach ($configs as $config) {
         try {
             $this->connection = $factory->make($config);
             $this->createTable();
             return;
         } catch (\PDOException $e) {
         }
     }
     throw $e;
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function testExceptionIsThrownOnUnsupportedDriver()
 {
     $factory = new Database\Connectors\ConnectionFactory();
     $factory->make(array('driver' => 'foo'));
 }