protected function setUp() { $this->db = Mongo_Database::instance('mongotest', array('database' => 'mongotest')); $this->db->createCollection('mongotest'); $this->db->mongotest->remove(array()); }
/** * Get the Mongo_Database instance used for this collection * * @return Mongo_Database */ public function db() { return Mongo_Database::instance($this->db); }
public function setup() { $this->db = Mongo_Database::instance('mongotest', array('database' => 'mongotest', 'profiling' => TRUE)); $this->db->createCollection('mongotest'); $this->db->mongotest->remove(array()); }