Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public function testFromArray()
 {
     foreach ($this->getTestConstructorObject() as $dataCell) {
         $this->assertEquals($dataCell['obj'], DataCell::fromArray(isset($dataCell['arrayDate']) ? $dataCell['arrayDate'] : $dataCell['array']));
     }
 }