mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-11-26 20:34:59 +01:00
20 lines
327 B
PHP
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));
|
|
}
|
|
}
|