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

21 lines
361 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;
final class CurrentDirTest extends TestCase
2020-08-18 05:51:44 +02:00
{
public function testCurrentDir(): void
{
static::assertSame(getcwd(), Env\current_dir());
2020-08-18 05:51:44 +02:00
Env\set_current_dir(__DIR__);
static::assertSame(__DIR__, Env\current_dir());
2020-08-18 05:51:44 +02:00
}
}