/**
  * @test
  */
 public function arrayObjectTest()
 {
     $index = 'index';
     $value = 'value';
     $this->fixture->offsetSet($index, $value);
     $this->assertEquals($value, $this->fixture->offsetGet($index));
 }
 /**
  * @param \SimpleXMLElement $sheetData
  * @param string $relationshipTarget
  * @return void
  */
 protected function readSheetData($sheetData, $relationshipTarget)
 {
     $workbookDir = dirname($relationshipTarget) . '/';
     $attributeNamespace = $sheetData->attributes('r', TRUE);
     $sheet = new XlsxSheet();
     $sheet->setName((string) $sheetData['name']);
     $sheet->setSheetId((int) $sheetData['sheetId']);
     $this->sheets->offsetSet((string) $attributeNamespace->id, $sheet);
     $workbookRelationsXml = simplexml_load_string($this->getFromName($workbookDir . '_rels/' . basename($relationshipTarget) . '.rels'));
     foreach ($workbookRelationsXml->Relationship as $workbookRelationship) {
         if ($workbookRelationship['Type'] == self::SCHEMA_WORKSHEET) {
             $sheetId = (string) $workbookRelationship['Id'];
             /** @var XlsxSheet $sheet */
             $sheet = $this->sheets->offsetGet($sheetId);
             $sheet->setPath($workbookDir . (string) $workbookRelationship['Target']);
             $this->sheets->offsetSet($sheetId, $sheet);
         }
     }
 }