You are here

public function CellTest::testSplitRange in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/CellTest.php \CellTest::testSplitRange()

@dataProvider providerSplitRange

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/CellTest.php, line 184

Class

CellTest

Code

public function testSplitRange() {
  $args = func_get_args();
  $expectedResult = array_pop($args);
  $result = call_user_func_array(array(
    'PHPExcel_Cell',
    'splitRange',
  ), $args);
  foreach ($result as $key => $split) {
    if (!is_array($expectedResult[$key])) {
      $this
        ->assertEquals($expectedResult[$key], $split[0]);
    }
    else {
      $this
        ->assertEquals($expectedResult[$key], $split);
    }
  }
}