endtoend-test-psl/tests/Psl/Str/Byte/UppercaseTest.php
2020-10-15 11:05:30 +02:00

31 lines
564 B
PHP

<?php
declare(strict_types=1);
namespace Psl\Tests\Str\Byte;
use PHPUnit\Framework\TestCase;
use Psl\Str\Byte;
final class UppercaseTest extends TestCase
{
/**
* @dataProvider provideData
*/
public function testUppercase(string $expected, string $str): void
{
static::assertSame($expected, Byte\uppercase($str));
}
public function provideData(): array
{
return [
['HELLO', 'hello'],
['HELLO', 'helLO'],
['HELLO', 'Hello'],
['1337', '1337'],
];
}
}