endtoend-test-psl/tests/Psl/Fun/IdentityTest.php
2020-10-15 11:05:30 +02:00

20 lines
327 B
PHP

<?php
declare(strict_types=1);
namespace Psl\Tests\Fun;
use PHPUnit\Framework\TestCase;
use Psl\Fun;
final class IdentityTest extends TestCase
{
public function testIdentity(): void
{
$expected = 'x';
$identity = Fun\identity();
static::assertSame($expected, $identity($expected));
}
}