PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions/TextData/ConcatenateTest.php

26 lines
622 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\TextData;
use PhpOffice\PhpSpreadsheet\Calculation\TextData;
use PHPUnit\Framework\TestCase;
class ConcatenateTest extends TestCase
{
/**
* @dataProvider providerCONCATENATE
*
* @param mixed $expectedResult
*/
public function testCONCATENATE($expectedResult, ...$args): void
{
$result = TextData::CONCATENATE(...$args);
self::assertEquals($expectedResult, $result);
}
public function providerCONCATENATE()
{
return require 'tests/data/Calculation/TextData/CONCATENATE.php';
}
}