public function testCreateDocumentBatch() { $batch = new Batch($this->connection); // not needed, but just here to test if anything goes wrong if it's called again... $batch->startCapture(); $this->assertInstanceOf('\\triagens\\ArangoDb\\Batch', $batch); $documentHandler = $this->documentHandler; $document = Document::createFromArray(array('someAttribute' => 'someValue', 'someOtherAttribute' => 'someOtherValue')); $documentId = $documentHandler->add($this->collection->getId(), $document); $this->assertTrue(is_numeric($documentId), 'Did not return an id!'); $document = Document::createFromArray(array('someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2')); $documentId = $documentHandler->add($this->collection->getId(), $document); $this->assertTrue(is_numeric($documentId), 'Did not return an id!'); $batch->process(); $batch->getPart(0)->getProcessedResponse(); // try getting it from batch $batch->getProcessedPartResponse(1); }