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

30 lines
647 B
PHP
Raw Normal View History

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