You are here

class DataTypeTest in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Cell/DataTypeTest.php \DataTypeTest

Hierarchy

Expanded class hierarchy of DataTypeTest

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Cell/DataTypeTest.php, line 4

View source
class DataTypeTest extends PHPUnit_Framework_TestCase {
  public function setUp() {
    if (!defined('PHPEXCEL_ROOT')) {
      define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
    }
    require_once PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php';
  }
  public function testGetErrorCodes() {
    $result = call_user_func(array(
      'PHPExcel_Cell_DataType',
      'getErrorCodes',
    ));
    $this
      ->assertInternalType('array', $result);
    $this
      ->assertGreaterThan(0, count($result));
    $this
      ->assertArrayHasKey('#NULL!', $result);
  }

}

Members