public function __construct(Config $config) { $this->config = $config->getAdapterConfig(); $this->parseReservedWord($this->getConfig()); $this->driver = $config->getAdapterDriver($this->getConfig()); $this->parseLocation($config->_basePath); }
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)); }