Files
PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions/Statistical/DevSqTest.php
Mark Baker e4973fa041 Start work on refactoring the last of the Excel Statistical functions (#2033)
* Refactoring the last of the Excel Statistical functions
2021-04-29 14:34:50 +02:00

32 lines
796 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
use PhpOffice\PhpSpreadsheet\Calculation\Statistical;
use PHPUnit\Framework\TestCase;
class DevSqTest extends TestCase
{
protected function setUp(): void
{
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
}
/**
* @dataProvider providerDEVSQ
*
* @param mixed $expectedResult
*/
public function testDEVSQ($expectedResult, ...$args): void
{
$result = Statistical::DEVSQ(...$args);
self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
}
public function providerDEVSQ(): array
{
return require 'tests/data/Calculation/Statistical/DEVSQ.php';
}
}