Make XLSX reader return Row objects
This commit is contained in:
1 parent
a665b974fa
commit
78b6639480
12 files changed
+272
-96
No files matched your search
@@ -9,29 +9,6 @@ use Box\Spout\Common\Exception\InvalidArgumentException;
|
||||
*/
|
||||
class CellHelperTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function dataProviderForTestFillMissingArrayIndexes()
|
||||
{
|
||||
return [
|
||||
[null, []],
|
||||
[[], []],
|
||||
[[1 => 1, 3 => 3], ['FILL', 1, 'FILL', 3]],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider dataProviderForTestFillMissingArrayIndexes
|
||||
* @param array $arrayToFill
|
||||
* @param array $expectedFilledArray
|
||||
*/
|
||||
public function testFillMissingArrayIndexes($arrayToFill, array $expectedFilledArray)
|
||||
{
|
||||
$filledArray = CellHelper::fillMissingArrayIndexes($arrayToFill, 'FILL');
|
||||
$this->assertEquals($expectedFilledArray, $filledArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user