public function AutoFilterTest::testSetRange in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/AutoFilterTest.php \AutoFilterTest::testSetRange()
File
- vendor/
phpoffice/ phpexcel/ unitTests/ Classes/ PHPExcel/ Worksheet/ AutoFilterTest.php, line 65
Class
Code
public function testSetRange() {
$ranges = array(
'G1:J512' => 'Worksheet1!G1:J512',
'K1:N20' => 'K1:N20',
);
foreach ($ranges as $actualRange => $fullRange) {
// Setters return the instance to implement the fluent interface
$result = $this->_testAutoFilterObject
->setRange($fullRange);
$this
->assertInstanceOf('PHPExcel_Worksheet_AutoFilter', $result);
// Result should be the new autofilter range
$result = $this->_testAutoFilterObject
->getRange();
$this
->assertEquals($actualRange, $result);
}
}