32 lines
739 B
PHP
32 lines
739 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\LookupRef;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
|
|
use PhpOffice\PhpSpreadsheet\Calculation\LookupRef;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class RowsTest extends TestCase
|
|
{
|
|
public function setUp()
|
|
{
|
|
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
|
}
|
|
|
|
/**
|
|
* @dataProvider providerROWS
|
|
*
|
|
* @param mixed $expectedResult
|
|
*/
|
|
public function testROWS($expectedResult, ...$args)
|
|
{
|
|
$result = LookupRef::ROWS(...$args);
|
|
$this->assertEquals($expectedResult, $result);
|
|
}
|
|
|
|
public function providerROWS()
|
|
{
|
|
return require 'data/Calculation/LookupRef/ROWS.php';
|
|
}
|
|
}
|