public function setUp() { $this->db = dirname(__FILE__) . '/test.db'; $this->adapter = new ActivePhp\Sqlite3Adapter(array('file' => $this->db)); ActivePhp\Base::$class = 'Test'; $this->adapter->query('CREATE TABLE IF NOT EXISTS foo (id INTEGER PRIMARY KEY, bar STRING)'); }
public function setUp() { ActivePhp\Base::$adapter = new ActivePhp\MysqlAdapter(array('host' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'active_php_test')); $this->adapter = ActivePhp\Base::$adapter; ActivePhp\Base::$class = 'Test'; }