/**
  * @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);
         }
     }
 }
 /**
  * @test
  */
 public function setAndGetNameTest()
 {
     $name = 'SheetTitle';
     $this->fixture->setName($name);
     $this->assertEquals($name, $this->fixture->getName());
 }