mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-27 18:48:36 +00:00
e41c4280f6
Start removing some of the deprecations, starting with the old Excel Function implementations.
26 lines
629 B
PHP
26 lines
629 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Statistical\Deviations;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class KurtTest extends TestCase
|
|
{
|
|
/**
|
|
* @dataProvider providerKURT
|
|
*
|
|
* @param mixed $expectedResult
|
|
*/
|
|
public function testKURT($expectedResult, ...$args): void
|
|
{
|
|
$result = Deviations::kurtosis(...$args);
|
|
self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
|
|
}
|
|
|
|
public function providerKURT(): array
|
|
{
|
|
return require 'tests/data/Calculation/Statistical/KURT.php';
|
|
}
|
|
}
|