4 require_once
'testDataFileIterator.php';
13 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
15 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
25 $args = func_get_args();
26 $expectedResult = array_pop($args);
27 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'CHARACTER'),$args);
28 $this->assertEquals($expectedResult,
$result);
41 $args = func_get_args();
42 $expectedResult = array_pop($args);
43 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'ASCIICODE'),$args);
44 $this->assertEquals($expectedResult,
$result);
57 $args = func_get_args();
58 $expectedResult = array_pop($args);
59 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'CONCATENATE'),$args);
60 $this->assertEquals($expectedResult,
$result);
73 $args = func_get_args();
74 $expectedResult = array_pop($args);
75 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'LEFT'),$args);
76 $this->assertEquals($expectedResult,
$result);
89 $args = func_get_args();
90 $expectedResult = array_pop($args);
91 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'MID'),$args);
92 $this->assertEquals($expectedResult,
$result);
105 $args = func_get_args();
106 $expectedResult = array_pop($args);
107 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'RIGHT'),$args);
108 $this->assertEquals($expectedResult,
$result);
121 $args = func_get_args();
122 $expectedResult = array_pop($args);
123 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'LOWERCASE'),$args);
124 $this->assertEquals($expectedResult,
$result);
137 $args = func_get_args();
138 $expectedResult = array_pop($args);
139 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'UPPERCASE'),$args);
140 $this->assertEquals($expectedResult,
$result);
153 $args = func_get_args();
154 $expectedResult = array_pop($args);
155 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'PROPERCASE'),$args);
156 $this->assertEquals($expectedResult,
$result);
169 $args = func_get_args();
170 $expectedResult = array_pop($args);
171 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'STRINGLENGTH'),$args);
172 $this->assertEquals($expectedResult,
$result);
185 $args = func_get_args();
186 $expectedResult = array_pop($args);
187 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'SEARCHINSENSITIVE'),$args);
188 $this->assertEquals($expectedResult,
$result);
201 $args = func_get_args();
202 $expectedResult = array_pop($args);
203 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'SEARCHSENSITIVE'),$args);
204 $this->assertEquals($expectedResult,
$result);
217 $args = func_get_args();
218 $expectedResult = array_pop($args);
219 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'REPLACE'),$args);
220 $this->assertEquals($expectedResult,
$result);
233 $args = func_get_args();
234 $expectedResult = array_pop($args);
235 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'SUBSTITUTE'),$args);
236 $this->assertEquals($expectedResult,
$result);
249 $args = func_get_args();
250 $expectedResult = array_pop($args);
251 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'TRIMSPACES'),$args);
252 $this->assertEquals($expectedResult,
$result);
265 $args = func_get_args();
266 $expectedResult = array_pop($args);
267 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'TRIMNONPRINTABLE'),$args);
268 $this->assertEquals($expectedResult,
$result);
281 $args = func_get_args();
282 $expectedResult = array_pop($args);
283 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'DOLLAR'),$args);
284 $this->assertEquals($expectedResult,
$result);
297 $args = func_get_args();
298 $expectedResult = array_pop($args);
299 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'FIXEDFORMAT'),$args);
300 $this->assertEquals($expectedResult,
$result);
313 $args = func_get_args();
314 $expectedResult = array_pop($args);
315 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'RETURNSTRING'),$args);
316 $this->assertEquals($expectedResult,
$result);
330 call_user_func(
array(
'PHPExcel_Shared_String',
'setDecimalSeparator'),
'.');
331 call_user_func(
array(
'PHPExcel_Shared_String',
'setThousandsSeparator'),
',');
332 call_user_func(
array(
'PHPExcel_Shared_String',
'setCurrencyCode'),
'$');
334 $args = func_get_args();
335 $expectedResult = array_pop($args);
336 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'TEXTFORMAT'),$args);
337 $this->assertEquals($expectedResult,
$result);
350 call_user_func(
array(
'PHPExcel_Shared_String',
'setDecimalSeparator'),
'.');
351 call_user_func(
array(
'PHPExcel_Shared_String',
'setThousandsSeparator'),
' ');
352 call_user_func(
array(
'PHPExcel_Shared_String',
'setCurrencyCode'),
'$');
354 $args = func_get_args();
355 $expectedResult = array_pop($args);
356 $result = call_user_func_array(
array(
'PHPExcel_Calculation_TextData',
'VALUE'),$args);
357 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
testPROPER()
providerPROPER
testDOLLAR()
providerDOLLAR
const COMPATIBILITY_EXCEL
constants
testSEARCH()
providerSEARCH
testSUBSTITUTE()
providerSUBSTITUTE
testREPLACE()
providerREPLACE
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
testCONCATENATE()
providerCONCATENATE
static setCompatibilityMode($compatibilityMode)