Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCursorTest::testCountCannotConnect PHP Method

testCountCannotConnect() public method

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