public function testCountCannotConnect()
{
$client = $this->getClient(['connect' => false], 'mongodb://localhost:28888');
$cursor = $client->selectCollection('mongo-php-adapter', 'test')->find();
$this->setExpectedException('MongoConnectionException');
$cursor->count();
}