endtoend-test-psl/tests/Psl/Env/JoinPathsTest.php

19 lines
413 B
PHP
Raw Normal View History

2020-08-18 05:51:44 +02:00
<?php
declare(strict_types=1);
namespace Psl\Tests\Env;
use PHPUnit\Framework\TestCase;
use Psl\Env;
use Psl\Str;
final class JoinPathsTest extends TestCase
2020-08-18 05:51:44 +02:00
{
public function testJoinPaths(): void
{
static::assertSame(Str\format('/home/azjezz%s/tmp', PATH_SEPARATOR), Env\join_paths('/home/azjezz', '/tmp'));
static::assertSame('/home/azjezz', Env\join_paths('/home/azjezz'));
2020-08-18 05:51:44 +02:00
}
}