mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2025-01-22 05:11:47 +01:00
20 lines
334 B
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));
|
||
|
}
|
||
|
}
|