PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions/Statistical/HypGeomDistTest.php

26 lines
650 B
PHP
Raw Normal View History

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