Files
PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions/Statistical/NormInvTest.php
T
Mark Baker a2bb825bc5 Extract Normal and Standard Normal Distributions from the Statistical Class (#1981)
* Extract Normal and Standard Normal Distributions from the Statistical Class
* Extract ZTest from the Statistical Class, and move it to the Standard Normal Distribution class
Additional unit tests for NORMINV()
* Extract LogNormal distribution functions from Statistical
2021-04-02 20:17:03 +02:00

26 lines
625 B
PHP

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