Files
PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions/Statistical/FDistTest.php
T
Mark Baker 17af13281b Extract a few more Distribution functions from Statistical (#1975)
* Extract a few more Distribution functions from Statistical; this time EXPONDIST() and HYPGEOMDIST()

* Extract the F Distribution (although only F.DIST() is implemented so far

* Updae docblocks

* PHPCS
2021-03-31 21:45:06 +02:00

26 lines
622 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
use PhpOffice\PhpSpreadsheet\Calculation\Statistical;
use PHPUnit\Framework\TestCase;
class FDistTest extends TestCase
{
/**
* @dataProvider providerFDIST
*
* @param mixed $expectedResult
*/
public function testFDIST($expectedResult, ...$args): void
{
$result = Statistical::FDIST2(...$args);
self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
}
public function providerFDIST(): array
{
return require 'tests/data/Calculation/Statistical/FDIST.php';
}
}