protected function __construct() { parent::__construct(); // testdatabase - This should be defined in you hosts file $this->setLogPath(realpath("../Log")); $this->setConnection(new Atrox_Core_Data_MySql_Connection("localhost", "username", "password", "database")); $this->getConnection()->connect(); }
protected function __construct() { parent::__construct(); // testdatabase - This should be defined in you hosts file $validConnectionString = "host=testdatabase port=5432 dbname=AtroxTest user=WebUser password=test"; $this->setLogPath(realpath("../Log")); $this->setConnection(new Atrox_Core_Data_PostgreSql_Connection($validConnectionString)); $this->getConnection()->connect(); }