Files
MarkBaker e41c4280f6 Initial creation of the version 2.0 Development branch
Start removing some of the deprecations, starting with the old Excel Function implementations.
2022-04-25 10:30:45 +02:00

28 lines
697 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
use PhpOffice\PhpSpreadsheet\Calculation\Statistical\Size;
use PHPUnit\Framework\TestCase;
class SmallTest extends TestCase
{
/**
* @dataProvider providerSMALL
*
* @param mixed $expectedResult
* @param mixed $values
* @param mixed $position
*/
public function testSMALL($expectedResult, $values, $position): void
{
$result = Size::small($values, $position);
self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
}
public function providerSMALL(): array
{
return require 'tests/data/Calculation/Statistical/SMALL.php';
}
}