I shouldn't modify compatibility mode in calculation tests without resetting it

TODO - should include setting/resetting this in all setup/teardown
This commit is contained in:
MarkBaker 2015-01-23 17:06:30 +00:00
parent 976e7f064a
commit b3c5e98022
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ class CalculationTest extends PHPUnit_Framework_TestCase
PHPExcel_Calculation_Functions::setCompatibilityMode(PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE);
$resultOpenOffice = \PHPExcel_Calculation::getInstance()->_calculateFormulaValue($formula);
$this->assertEquals($expectedResultOpenOffice, $resultOpenOffice, 'should be OpenOffice compatible');
PHPExcel_Calculation_Functions::setCompatibilityMode(PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL);
}
public function providerBinaryComparisonOperation()