Esempio n. 1
0
 public function __construct(Config $config)
 {
     $this->config = $config->getAdapterConfig();
     $this->parseReservedWord($this->getConfig());
     $this->driver = $config->getAdapterDriver($this->getConfig());
     $this->parseLocation($config->_basePath);
 }
Esempio n. 2
0
 public function testAdapterDriver()
 {
     $config = new Config(array('framework' => 'none', 'database' => $GLOBALS['dbname'], 'driver' => 'pgsql'), $this->basePath, 3);
     $driver = $config->getAdapterDriver($config->getAdapterConfig());
     $table = $driver->getTables();
     $this->assertTrue($driver instanceof Pgsql);
     $this->assertTrue(is_array($table));
 }