You are here

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

File

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

Class

CellTest

Code

public function testCoordinateFromStringWithInvalidAddress() {
  $cellAddress = 'AI';
  try {
    $result = call_user_func(array(
      'PHPExcel_Cell',
      'coordinateFromString',
    ), $cellAddress);
  } catch (PHPExcel_Exception $e) {
    $this
      ->assertEquals($e
      ->getMessage(), 'Invalid cell coordinate ' . $cellAddress);
    return;
  }
  $this
    ->fail('An expected exception has not been raised.');
}