mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-15 08:27:23 +00:00
1b05dfab8b
And quite a bit more manual changes. The idea is that typing of our tests can be a bit more loose, so we assume PHPDoc is mostly correct. If that happens to be wrong, it should be caught by the tests themselves.
34 lines
826 B
PHP
34 lines
826 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
|
|
|
|
class VarTest extends AllSetupTeardown
|
|
{
|
|
/**
|
|
* @dataProvider providerVAR
|
|
*/
|
|
public function testVAR(mixed $expectedResult, mixed ...$args): void
|
|
{
|
|
$this->runTestCases('VAR', $expectedResult, ...$args);
|
|
}
|
|
|
|
public static function providerVAR(): array
|
|
{
|
|
return require 'tests/data/Calculation/Statistical/VAR.php';
|
|
}
|
|
|
|
/**
|
|
* @dataProvider providerOdsVAR
|
|
*/
|
|
public function testOdsVAR(mixed $expectedResult, mixed ...$args): void
|
|
{
|
|
$this->setOpenOffice();
|
|
$this->runTestCases('VAR', $expectedResult, ...$args);
|
|
}
|
|
|
|
public static function providerOdsVAR(): array
|
|
{
|
|
return require 'tests/data/Calculation/Statistical/VAR_ODS.php';
|
|
}
|
|
}
|