public function testEmptyCollectionName() { $this->setExpectedException('Exception', 'Collection name cannot be empty'); new \MongoCollection($this->getDatabase(), ''); }