mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-27 18:48:36 +00:00
25 lines
621 B
PHP
25 lines
621 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class FunctionsMatrixResizeTest extends TestCase
|
|
{
|
|
/**
|
|
* @dataProvider providerMatrixResize
|
|
*/
|
|
public function testIsBlank(array $matrix, int $rows, int $columns, array $expectedResult): void
|
|
{
|
|
$result = Functions::resizeMatrix($matrix, $rows, $columns);
|
|
|
|
self::assertSame($expectedResult, $result);
|
|
}
|
|
|
|
public function providerMatrixResize(): array
|
|
{
|
|
return require 'tests/data/Calculation/MatrixResize.php';
|
|
}
|
|
}
|