Start Calculation Changes

This commit is contained in:
oleibman
2025-05-08 22:44:13 -07:00
parent 130c6e99d2
commit e53a04b016
41 changed files with 262 additions and 126 deletions
@@ -5,10 +5,11 @@ declare(strict_types=1);
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\TextData;
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
use PHPUnit\Framework\Attributes\DataProvider;
class ReptTest extends AllSetupTeardown
{
#[\PHPUnit\Framework\Attributes\DataProvider('providerREPT')]
#[DataProvider('providerREPT')]
public function testReptThroughEngine(mixed $expectedResult, mixed $val = 'omitted', mixed $rpt = 'omitted'): void
{
$this->mightHaveException($expectedResult);
@@ -32,7 +33,8 @@ class ReptTest extends AllSetupTeardown
return require 'tests/data/Calculation/TextData/REPT.php';
}
#[\PHPUnit\Framework\Attributes\DataProvider('providerReptArray')]
/** @param mixed[] $expectedResult */
#[DataProvider('providerReptArray')]
public function testReptArray(array $expectedResult, string $argument1, string $argument2): void
{
$calculation = Calculation::getInstance();