Use calculateFormula Rather Than _calculateFormulaValue in Tests

They aren't quite interchangeable. Both are used in the test suite, with no indication of why one or the other. I think we'd be best off being consistent. Based on the names, I think `_calculateFormulaValue` was intended as a private, or at least internal, method, so favor `calculateFormula`. I do not intend to rename or re-categorize `_calculateFormulaValue`, just remove its usage when it isn't clearly warranted.
This commit is contained in:
oleibman
2025-11-13 20:48:46 -08:00
parent a61f9f1b66
commit 70b4ecd4d3
168 changed files with 301 additions and 282 deletions
@@ -177,8 +177,8 @@ class LeftTest extends AllSetupTeardown
$calculation = Calculation::getInstance();
$formula = "=LEFT({$argument1}, {$argument2})";
$result = $calculation->_calculateFormulaValue($formula);
self::assertEqualsWithDelta($expectedResult, $result, 1.0e-14);
$result = $calculation->calculateFormula($formula);
self::assertSame($expectedResult, $result);
}
public static function providerLeftArray(): array