You are here

public function CellTest::testColumnIndexFromStringTooShort 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::testColumnIndexFromStringTooShort()

File

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

Class

CellTest

Code

public function testColumnIndexFromStringTooShort() {
  $cellAddress = '';
  try {
    $result = call_user_func(array(
      'PHPExcel_Cell',
      'columnIndexFromString',
    ), $cellAddress);
  } catch (PHPExcel_Exception $e) {
    $this
      ->assertEquals($e
      ->getMessage(), 'Column string index can not be empty');
    return;
  }
  $this
    ->fail('An expected exception has not been raised.');
}