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

26 lines
592 B
PHP
Raw Normal View History

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