27 lines
644 B
PHP
27 lines
644 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Financial;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Financial\Dollar;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class UsDollarTest extends TestCase
|
|
{
|
|
/**
|
|
* @dataProvider providerUSDOLLAR
|
|
*
|
|
* @param mixed $expectedResult
|
|
* @param mixed $message
|
|
*/
|
|
public function testUSDOLLAR($expectedResult, ...$args): void
|
|
{
|
|
$result = Dollar::format(...$args);
|
|
self::assertSame($expectedResult, $result);
|
|
}
|
|
|
|
public function providerUSDOLLAR(): array
|
|
{
|
|
return require 'tests/data/Calculation/Financial/USDOLLAR.php';
|
|
}
|
|
}
|