PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions/TextData/RightTest.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 RightTest extends TestCase
{
/**
* @dataProvider providerRIGHT
*
* @param mixed $expectedResult
*/
2020-05-18 04:49:57 +00:00
public function testRIGHT($expectedResult, ...$args): void
{
$result = TextData::RIGHT(...$args);
2020-05-18 04:49:57 +00:00
self::assertEquals($expectedResult, $result);
}
public function providerRIGHT()
{
return require 'tests/data/Calculation/TextData/RIGHT.php';
}
}