You are here

DataTypeTest.php in Loft Data Grids 7.2

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Cell/DataTypeTest.php
View source
<?php

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);
  }

}

Classes

Namesort descending Description
DataTypeTest