endtoend-test-psl/tests/Psl/Str/ConcatTest.php
2019-12-27 05:42:24 +01:00

19 lines
417 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
declare(strict_types=1);
namespace Psl\Tests\Str;
use PHPUnit\Framework\TestCase;
use Psl\Str;
class ConcatTest extends TestCase
{
public function testConcat(): void
{
self::assertSame('', Str\concat(''));
self::assertSame('abc', Str\concat('a', 'b', 'c'));
self::assertSame('مرحبا بكم', Str\concat(...['م', 'ر', 'ح', 'ب', 'ا', ' ', 'ب', 'ك', 'م']));
}
}