Files
PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/FactDoubleTest.php
T
Mark Baker dd74dd7fcf Let's start with some appeasements to phpstan, just to reduce the baseline (#1983)
* Let's start with some appeasements to phpstan, just to reduce the baseline
* Appeasements to phpstan, taking the number of reported errors down to just 61
2021-04-03 17:10:40 +02:00

28 lines
770 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\MathTrig;
class FactDoubleTest extends AllSetupTeardown
{
/**
* @dataProvider providerFACTDOUBLE
*
* @param mixed $expectedResult
* @param mixed $value
*/
public function testFACTDOUBLE($expectedResult, $value): void
{
$this->mightHaveException($expectedResult);
$sheet = $this->sheet;
$sheet->getCell('A1')->setValue($value);
$sheet->getCell('B1')->setValue('=FACTDOUBLE(A1)');
$result = $sheet->getCell('B1')->getCalculatedValue();
self::assertEquals($expectedResult, $result);
}
public function providerFACTDOUBLE()
{
return require 'tests/data/Calculation/MathTrig/FACTDOUBLE.php';
}
}