4 require_once
'custom/complexAssert.php';
7 require_once
'testDataFileIterator.php';
17 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
19 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
29 $args = func_get_args();
30 $expectedResult = array_pop($args);
31 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'BESSELI'),$args);
32 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
45 $args = func_get_args();
46 $expectedResult = array_pop($args);
47 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'BESSELJ'),$args);
48 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
61 $args = func_get_args();
62 $expectedResult = array_pop($args);
63 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'BESSELK'),$args);
64 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
77 $args = func_get_args();
78 $expectedResult = array_pop($args);
79 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'BESSELY'),$args);
80 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
93 $args = func_get_args();
94 $expectedResult = array_pop($args);
95 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'COMPLEX'),$args);
96 $this->assertEquals($expectedResult,
$result);
109 $args = func_get_args();
110 $expectedResult = array_pop($args);
111 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMAGINARY'),$args);
112 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
125 $args = func_get_args();
126 $expectedResult = array_pop($args);
127 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMREAL'),$args);
128 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
141 $args = func_get_args();
142 $expectedResult = array_pop($args);
143 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMABS'),$args);
144 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
157 $args = func_get_args();
158 $expectedResult = array_pop($args);
159 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMARGUMENT'),$args);
160 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
173 $args = func_get_args();
174 $expectedResult = array_pop($args);
175 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMCONJUGATE'),$args);
177 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
178 $complexAssert->getErrorMessage());
191 $args = func_get_args();
192 $expectedResult = array_pop($args);
193 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMCOS'),$args);
195 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
196 $complexAssert->getErrorMessage());
209 $args = func_get_args();
210 $expectedResult = array_pop($args);
211 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMDIV'),$args);
213 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
214 $complexAssert->getErrorMessage());
227 $args = func_get_args();
228 $expectedResult = array_pop($args);
229 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMEXP'),$args);
231 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
232 $complexAssert->getErrorMessage());
245 $args = func_get_args();
246 $expectedResult = array_pop($args);
247 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMLN'),$args);
249 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
250 $complexAssert->getErrorMessage());
263 $args = func_get_args();
264 $expectedResult = array_pop($args);
265 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMLOG2'),$args);
267 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
268 $complexAssert->getErrorMessage());
281 $args = func_get_args();
282 $expectedResult = array_pop($args);
283 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMLOG10'),$args);
285 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
286 $complexAssert->getErrorMessage());
299 $args = func_get_args();
300 $expectedResult = array_pop($args);
301 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMPOWER'),$args);
303 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
304 $complexAssert->getErrorMessage());
317 $args = func_get_args();
318 $expectedResult = array_pop($args);
319 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMPRODUCT'),$args);
321 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
322 $complexAssert->getErrorMessage());
335 $args = func_get_args();
336 $expectedResult = array_pop($args);
337 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMSIN'),$args);
339 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
340 $complexAssert->getErrorMessage());
353 $args = func_get_args();
354 $expectedResult = array_pop($args);
355 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMSQRT'),$args);
357 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
358 $complexAssert->getErrorMessage());
371 $args = func_get_args();
372 $expectedResult = array_pop($args);
373 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMSUB'),$args);
375 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
376 $complexAssert->getErrorMessage());
389 $args = func_get_args();
390 $expectedResult = array_pop($args);
391 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'IMSUM'),$args);
393 $this->assertTrue($complexAssert->assertComplexEquals($expectedResult,
$result, 1E-8),
394 $complexAssert->getErrorMessage());
407 $args = func_get_args();
408 $expectedResult = array_pop($args);
409 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'ERF'),$args);
410 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
423 $args = func_get_args();
424 $expectedResult = array_pop($args);
425 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'ERFC'),$args);
426 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
439 $args = func_get_args();
440 $expectedResult = array_pop($args);
441 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'BINTODEC'),$args);
442 $this->assertEquals($expectedResult,
$result);
455 $args = func_get_args();
456 $expectedResult = array_pop($args);
457 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'BINTOHEX'),$args);
458 $this->assertEquals($expectedResult,
$result);
471 $args = func_get_args();
472 $expectedResult = array_pop($args);
473 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'BINTOOCT'),$args);
474 $this->assertEquals($expectedResult,
$result);
487 $args = func_get_args();
488 $expectedResult = array_pop($args);
489 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'DECTOBIN'),$args);
490 $this->assertEquals($expectedResult,
$result, NULL);
503 $args = func_get_args();
504 $expectedResult = array_pop($args);
505 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'DECTOHEX'),$args);
506 $this->assertEquals($expectedResult,
$result, NULL);
519 $args = func_get_args();
520 $expectedResult = array_pop($args);
521 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'DECTOOCT'),$args);
522 $this->assertEquals($expectedResult,
$result, NULL);
535 $args = func_get_args();
536 $expectedResult = array_pop($args);
537 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'HEXTOBIN'),$args);
538 $this->assertEquals($expectedResult,
$result, NULL);
551 $args = func_get_args();
552 $expectedResult = array_pop($args);
553 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'HEXTODEC'),$args);
554 $this->assertEquals($expectedResult,
$result, NULL);
567 $args = func_get_args();
568 $expectedResult = array_pop($args);
569 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'HEXTOOCT'),$args);
570 $this->assertEquals($expectedResult,
$result, NULL);
583 $args = func_get_args();
584 $expectedResult = array_pop($args);
585 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'OCTTOBIN'),$args);
586 $this->assertEquals($expectedResult,
$result, NULL);
599 $args = func_get_args();
600 $expectedResult = array_pop($args);
601 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'OCTTODEC'),$args);
602 $this->assertEquals($expectedResult,
$result, NULL);
615 $args = func_get_args();
616 $expectedResult = array_pop($args);
617 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'OCTTOHEX'),$args);
618 $this->assertEquals($expectedResult,
$result, NULL);
631 $args = func_get_args();
632 $expectedResult = array_pop($args);
633 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'DELTA'),$args);
634 $this->assertEquals($expectedResult,
$result, NULL);
647 $args = func_get_args();
648 $expectedResult = array_pop($args);
649 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'GESTEP'),$args);
650 $this->assertEquals($expectedResult,
$result, NULL);
661 $this->assertInternalType(
'array',
$result);
667 $this->assertInternalType(
'array',
$result);
673 $this->assertInternalType(
'array',
$result);
679 $this->assertInternalType(
'array',
$result);
687 $args = func_get_args();
688 $expectedResult = array_pop($args);
689 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Engineering',
'CONVERTUOM'),$args);
690 $this->assertEquals($expectedResult,
$result, NULL);
testBIN2OCT()
providerBIN2OCT
testBESSELI()
providerBESSELI
testBIN2HEX()
providerBIN2HEX
testOCT2HEX()
providerOCT2HEX
const COMPATIBILITY_EXCEL
constants
testIMARGUMENT()
providerIMARGUMENT
testIMLOG2()
providerIMLOG2
testIMAGINARY()
providerIMAGINARY
testOCT2DEC()
providerOCT2DEC
testDEC2OCT()
providerDEC2OCT
testBESSELK()
providerBESSELK
testBIN2DEC()
providerBIN2DEC
testGetConversionMultipliers()
testCONVERTUOM()
providerCONVERTUOM
testIMSQRT()
providerIMSQRT
testGESTEP()
providerGESTEP
testHEX2BIN()
providerHEX2BIN
testGetConversionGroups()
testBESSELY()
providerBESSELY
testDEC2HEX()
providerDEC2HEX
static getConversionMultipliers()
getConversionMultipliers Returns an array of the Multiplier prefixes that can be used with Units of M...
testIMPRODUCT()
providerIMPRODUCT
testIMREAL()
providerIMREAL
testHEX2DEC()
providerHEX2DEC
Create styles array
The data for the language used.
testDEC2BIN()
providerDEC2BIN
testIMPOWER()
providerIMPOWER
static getConversionGroupUnits($group=NULL)
getConversionGroupUnits Returns an array of units of measure, for a specified conversion group...
testCOMPLEX()
providerCOMPLEX
static getConversionGroupUnitDetails($group=NULL)
getConversionGroupUnitDetails
testOCT2BIN()
providerOCT2BIN
testIMLOG10()
providerIMLOG10
testGetConversionGroupUnitDetails()
static getConversionGroups()
getConversionGroups Returns a list of the different conversion groups for UOM conversions ...
testGetConversionGroupUnits()
testIMCONJUGATE()
providerIMCONJUGATE
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
testHEX2OCT()
providerHEX2OCT
static setCompatibilityMode($compatibilityMode)
testBESSELJ()
providerBESSELJ