Exemplo n.º 1
0
 public function importFromArchive(Tracker $tracker, Tracker_Artifact_XMLImport_XMLImportZipArchive $archive)
 {
     $archive->extractFiles();
     $xml = simplexml_load_string($archive->getXML());
     $extraction_path = $archive->getExtractionPath();
     $this->importFromXML($tracker, $xml, $extraction_path);
     $archive->cleanUp();
 }
Exemplo n.º 2
0
 public function importFromArchive(Tracker $tracker, Tracker_Artifact_XMLImport_XMLImportZipArchive $archive)
 {
     $archive->extractFiles();
     $xml = simplexml_load_string($archive->getXML());
     $extraction_path = $archive->getExtractionPath();
     $xml_field_mapping = new TrackerXmlFieldsMapping_InSamePlatform();
     $this->importFromXML($tracker, $xml, $extraction_path, $xml_field_mapping);
     $archive->cleanUp();
 }
 public function itGivesTheXMLFile()
 {
     $expected = file_get_contents($this->fixtures_dir . '/artifacts.xml');
     $this->assertEqual($expected, $this->archive->getXML());
 }