public function testUpdateNoConnectionException() { $db = new MockMongoConnection($this->_testConfig + array('autoConnect' => false)); $this->expectException('Could not connect to the database.'); $result = $db->update(null); }