public function testCreateIndexInvalid() { $this->setExpectedException('MongoException', 'index specification has no elements'); $this->getCollection()->createIndex([]); }