mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-24 10:58:32 +00:00
28 lines
732 B
PHP
28 lines
732 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
|
|
|
|
class RankTest extends AllSetupTeardown
|
|
{
|
|
/**
|
|
* @dataProvider providerRANK
|
|
*
|
|
* @param mixed[] $valueSet
|
|
*/
|
|
public function testRANK(mixed $expectedResult, mixed $value, array $valueSet, mixed $order = null): void
|
|
{
|
|
if ($order === null) {
|
|
$this->runTestCaseReference('RANK', $expectedResult, $value, $valueSet);
|
|
} else {
|
|
$this->runTestCaseReference('RANK', $expectedResult, $value, $valueSet, $order);
|
|
}
|
|
}
|
|
|
|
public static function providerRANK(): array
|
|
{
|
|
return require 'tests/data/Calculation/Statistical/RANK.php';
|
|
}
|
|
}
|