mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-11 16:49:40 +01:00
28 lines
477 B
PHP
28 lines
477 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Psl\Tests\Str\Byte;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Psl\Str\Byte;
|
|
|
|
class ReverseTest extends TestCase
|
|
{
|
|
/**
|
|
* @dataProvider provideData
|
|
*/
|
|
public function testReverse(string $expected, string $input): void
|
|
{
|
|
self::assertSame($expected, Byte\reverse($input));
|
|
}
|
|
|
|
public function provideData(): array
|
|
{
|
|
return [
|
|
['oof', 'foo'],
|
|
['', ''],
|
|
];
|
|
}
|
|
}
|