4require_once
'testDataFileIterator.php';
11 if (!
defined(
'PHPEXCEL_ROOT')) {
12 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
14 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
22 $args = func_get_args();
23 $expectedResult = array_pop($args);
24 $result = call_user_func_array(array(
'PHPExcel_Style_Color',
'getRed'),$args);
25 $this->assertEquals($expectedResult,
$result);
38 $args = func_get_args();
39 $expectedResult = array_pop($args);
40 $result = call_user_func_array(array(
'PHPExcel_Style_Color',
'getGreen'),$args);
41 $this->assertEquals($expectedResult,
$result);
54 $args = func_get_args();
55 $expectedResult = array_pop($args);
56 $result = call_user_func_array(array(
'PHPExcel_Style_Color',
'getBlue'),$args);
57 $this->assertEquals($expectedResult,
$result);
70 $args = func_get_args();
71 $expectedResult = array_pop($args);
72 $result = call_user_func_array(array(
'PHPExcel_Style_Color',
'changeBrightness'),$args);
73 $this->assertEquals($expectedResult,
$result);
An exception for terminatinating execution or to throw for unit testing.
testGetGreen()
@dataProvider providerColorGetGreen
testGetRed()
@dataProvider providerColorGetRed
testGetBlue()
@dataProvider providerColorGetBlue
testChangeBrightness()
@dataProvider providerColorChangeBrightness
providerColorChangeBrightness()
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'