mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-24 01:00:05 +00:00
Start Calculation Changes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user