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

28 lines
485 B
PHP

<?php
declare(strict_types=1);
namespace Psl\Tests\Str\Byte;
use PHPUnit\Framework\TestCase;
use Psl\Str\Byte;
final class ReverseTest extends TestCase
{
/**
* @dataProvider provideData
*/
public function testReverse(string $expected, string $input): void
{
static::assertSame($expected, Byte\reverse($input));
}
public function provideData(): array
{
return [
['oof', 'foo'],
['', ''],
];
}
}