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