multipart_upload multipart.data 0004B999EF5A239BB9138C6227D69F95 5 1000 false 1 2012-02-23T07:01:34.000Z "3349DC700140D7F86A078484278075A9" 6291456 2 2012-02-23T07:01:12.000Z "3349DC700140D7F86A078484278075A9" 6291456 5 2012-02-23T07:02:03.000Z "7265F4D211B56873A381D321F586E4A9" 1024 BBBB; public function testParseValidXml() { $response = new ResponseCore(array(), $this->validXml, 200); $result = new ListPartsResult($response); $listPartsInfo = $result->getData(); $this->assertEquals("multipart_upload", $listPartsInfo->getBucket()); $this->assertEquals("multipart.data", $listPartsInfo->getKey()); $this->assertEquals("0004B999EF5A239BB9138C6227D69F95", $listPartsInfo->getUploadId()); $this->assertEquals(5, $listPartsInfo->getNextPartNumberMarker()); $this->assertEquals(1000, $listPartsInfo->getMaxParts()); $this->assertEquals("false", $listPartsInfo->getIsTruncated()); $this->assertEquals(3, count($listPartsInfo->getListPart())); $parts = $listPartsInfo->getListPart(); $this->assertEquals(1, $parts[0]->getPartNumber()); $this->assertEquals('2012-02-23T07:01:34.000Z', $parts[0]->getLastModified()); $this->assertEquals('"3349DC700140D7F86A078484278075A9"', $parts[0]->getETag()); $this->assertEquals(6291456, $parts[0]->getSize()); } }