mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-29 11:40:04 +00:00
e41c4280f6
Start removing some of the deprecations, starting with the old Excel Function implementations.
28 lines
697 B
PHP
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';
|
|
}
|
|
}
|