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

26 lines
586 B
PHP
Raw Normal View History

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