D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
vendor
/
phpoffice
/
phpexcel
/
unitTests
/
Classes
/
PHPExcel
/
Cell
/
Filename :
DataTypeTest.php
back
Copy
<?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); } }