public function getRowsArrayToCompare($arr) { $arrRes = array(); foreach ($arr as $key => $row) { foreach ($row as $id => $cell) { $cellCopy = array(); foreach ($cell as $i => $entry) { if (!is_null($entry)) { if ($i != 'v') { $cellCopy[$i] = $entry; } else { $cellCopy[$i] = DataCell::getValueForArraySatic($entry); } } } $arrRes[$key]['c'][] = $cellCopy; } } return $arrRes; }
public function testFromArray() { foreach ($this->getTestConstructorObject() as $dataCell) { $this->assertEquals($dataCell['obj'], DataCell::fromArray(isset($dataCell['arrayDate']) ? $dataCell['arrayDate'] : $dataCell['array'])); } }