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