mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-04 10:39:57 +01:00
19 lines
358 B
PHP
19 lines
358 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Psl\Tests\Dict;
|
||
|
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
use Psl\Dict;
|
||
|
|
||
|
final class ReindexTest extends TestCase
|
||
|
{
|
||
|
public function testReindex(): void
|
||
|
{
|
||
|
$result = Dict\reindex([1, 2, 3], static fn (int $value): int => $value);
|
||
|
|
||
|
static::assertSame([1 => 1, 2 => 2, 3 => 3], $result);
|
||
|
}
|
||
|
}
|