26 lines
609 B
PHP
26 lines
609 B
PHP
|
<?php
|
||
|
|
||
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
|
||
|
|
||
|
use PhpOffice\PhpSpreadsheet\Calculation\Statistical;
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
|
||
|
class MinTest extends TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @dataProvider providerMIN
|
||
|
*
|
||
|
* @param mixed $expectedResult
|
||
|
*/
|
||
|
public function testMIN($expectedResult, ...$args): void
|
||
|
{
|
||
|
$result = Statistical::MIN(...$args);
|
||
|
self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
|
||
|
}
|
||
|
|
||
|
public function providerMIN(): array
|
||
|
{
|
||
|
return require 'tests/data/Calculation/Statistical/MIN.php';
|
||
|
}
|
||
|
}
|