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

26 lines
616 B
PHP
Raw Normal View History

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\TextData;
use PhpOffice\PhpSpreadsheet\Calculation\TextData;
use PHPUnit\Framework\TestCase;
class SubstituteTest extends TestCase
{
/**
* @dataProvider providerSUBSTITUTE
*
* @param mixed $expectedResult
*/
2020-05-18 04:49:57 +00:00
public function testSUBSTITUTE($expectedResult, ...$args): void
{
$result = TextData::SUBSTITUTE(...$args);
2020-05-18 04:49:57 +00:00
self::assertEquals($expectedResult, $result);
}
public function providerSUBSTITUTE()
{
return require 'tests/data/Calculation/TextData/SUBSTITUTE.php';
}
}