public function testBatchInsertEmptyBatchException() { $this->setExpectedException('MongoException', 'No write ops were included in the batch'); $documents = []; $this->getCollection()->batchInsert($documents, ['w' => 2]); }