public function testUpdateNoConnectionException() { $db = new MongoDb(array('host' => '__invalid__', 'autoConnect' => false)); $this->assertException('Could not connect to the database.', function () use($db) { $db->update(null); }); }
public function testUpdateNoConnectionException() { $db = new MongoDb(array('host' => '__invalid__', 'autoConnect' => false)); $this->expectException('Could not connect to the database.'); $result = $db->update(null); }