public function testMakeClean() { $this->assertEquals(0, count(Shanty_Mongo::getConnectionGroups())); Shanty_Mongo::setConnectionGroup('users', new Shanty_Mongo_Connection_Group()); Shanty_Mongo::makeClean(); $this->assertEquals(0, count(Shanty_Mongo::getConnectionGroups())); }
public function tearDown() { $this->_restoreIncludePath(); $this->_connection->selectDb(TESTS_SHANTY_MONGO_DB)->selectCollection('user')->drop(); $this->_connection->selectDb(TESTS_SHANTY_MONGO_DB)->selectCollection('article')->drop(); Shanty_Mongo::makeClean(); parent::tearDown(); }