Files
MarkBaker e41c4280f6 Initial creation of the version 2.0 Development branch
Start removing some of the deprecations, starting with the old Excel Function implementations.
2022-04-25 10:30:45 +02:00

27 lines
645 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Web;
use PhpOffice\PhpSpreadsheet\Calculation\Web\Service as WebService;
use PHPUnit\Framework\TestCase;
class UrlEncodeTest extends TestCase
{
/**
* @dataProvider providerURLENCODE
*
* @param string $expectedResult
* @param mixed $text
*/
public function testURLENCODE($expectedResult, $text): void
{
$result = WebService::urlEncode($text);
self::assertSame($expectedResult, $result);
}
public function providerURLENCODE(): array
{
return require 'tests/data/Calculation/Web/URLENCODE.php';
}
}