From b3c5e98022b409f405ade65c778aa1ddc6819697 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Fri, 23 Jan 2015 17:06:30 +0000 Subject: [PATCH] I shouldn't modify compatibility mode in calculation tests without resetting it TODO - should include setting/resetting this in all setup/teardown --- unitTests/Classes/PHPExcel/CalculationTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unitTests/Classes/PHPExcel/CalculationTest.php b/unitTests/Classes/PHPExcel/CalculationTest.php index 8f8ce7e0..1a510a02 100644 --- a/unitTests/Classes/PHPExcel/CalculationTest.php +++ b/unitTests/Classes/PHPExcel/CalculationTest.php @@ -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()