public function ReferenceHelperTest::testColumnSort in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/ReferenceHelperTest.php \ReferenceHelperTest::testColumnSort()
File
- vendor/
phpoffice/ phpexcel/ unitTests/ Classes/ PHPExcel/ ReferenceHelperTest.php, line 15
Class
Code
public function testColumnSort() {
$columnBase = $columnExpectedResult = array(
'A',
'B',
'Z',
'AA',
'AB',
'AZ',
'BA',
'BB',
'BZ',
'ZA',
'ZB',
'ZZ',
'AAA',
'AAB',
'AAZ',
'ABA',
'ABB',
'ABZ',
'AZA',
'AZB',
'AZZ',
'BAA',
'BAB',
'BAZ',
'BBA',
'BBB',
'BBZ',
'BZA',
'BZB',
'BZZ',
);
shuffle($columnBase);
usort($columnBase, array(
'PHPExcel_ReferenceHelper',
'columnSort',
));
foreach ($columnBase as $key => $value) {
$this
->assertEquals($columnExpectedResult[$key], $value);
}
}