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

26 lines
603 B
PHP
Raw Normal View History

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