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

27 lines
614 B
PHP
Raw Normal View History

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