public function test()
 {
     $dataColumn = new DataColumn('testColumn');
     $dataColumn->setValue('testValue');
     $subject = new DataRow();
     static::assertCount(0, $subject->getDataColumns());
     $subject->addDataColumn($dataColumn);
     static::assertCount(1, $subject->getDataColumns());
 }
 /**
  * @param array $rowsData
  * @return \DatabaseExporterImporter\Entity\DataRow[]
  */
 public function getDataRows(array $rowsData)
 {
     $dataRows = [];
     foreach ($rowsData as $rowData) {
         $dataRow = new DataRow();
         foreach ($rowData as $columnName => $columnValue) {
             $dataColumn = new DataColumn($columnName);
             $dataRow->addDataColumn($dataColumn->setValue($columnValue));
         }
         $dataRows[] = $dataRow;
     }
     return $dataRows;
 }
 /**
  * @throws \RuntimeException
  * @return \DatabaseExporterImporter\Entity\Table[]
  */
 public function getTables()
 {
     $this->tables = $this->tablesProvider->setRootTableName($this->primaryTableName)->getTables();
     foreach ($this->tables as $table) {
         foreach ($this->getTableData($table) as $tableData) {
             $dataRow = new DataRow();
             foreach ($table->getColumns() as $column) {
                 $dataColumn = new DataColumn($column->getName());
                 $dataColumn->setValue($tableData[$column->getName()]);
                 $dataRow->addDataColumn($dataColumn);
             }
             $table->addDataRow($dataRow);
         }
     }
     return $this->tables;
 }