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

20 lines
334 B
PHP

<?php
declare(strict_types=1);
namespace Psl\Tests\Fun;
use PHPUnit\Framework\TestCase;
use Psl\Fun;
class PassthroughTest extends TestCase
{
public function testPassthrough(): void
{
$expected = 'x';
$passthrough = Fun\passthrough();
self::assertSame($expected, $passthrough($expected));
}
}