endtoend-test-psl/tests/Psl/Env/CurrentDirTest.php
2020-10-15 11:05:30 +02:00

21 lines
361 B
PHP

<?php
declare(strict_types=1);
namespace Psl\Tests\Env;
use PHPUnit\Framework\TestCase;
use Psl\Env;
final class CurrentDirTest extends TestCase
{
public function testCurrentDir(): void
{
static::assertSame(getcwd(), Env\current_dir());
Env\set_current_dir(__DIR__);
static::assertSame(__DIR__, Env\current_dir());
}
}