32 lines
774 B
PHP
32 lines
774 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Engineering;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Engineering;
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ComplexTest extends TestCase
|
|
{
|
|
protected function setUp(): void
|
|
{
|
|
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
|
}
|
|
|
|
/**
|
|
* @dataProvider providerCOMPLEX
|
|
*
|
|
* @param mixed $expectedResult
|
|
*/
|
|
public function testCOMPLEX($expectedResult, ...$args)
|
|
{
|
|
$result = Engineering::COMPLEX(...$args);
|
|
$this->assertEquals($expectedResult, $result);
|
|
}
|
|
|
|
public function providerCOMPLEX()
|
|
{
|
|
return require 'data/Calculation/Engineering/COMPLEX.php';
|
|
}
|
|
}
|