endtoend-test-psl/tests/Psl/Fun/IdentityTest.php

20 lines
327 B
PHP
Raw Normal View History

<?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));
}
}