mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-11-26 20:34:59 +01:00
21 lines
361 B
PHP
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());
|
|
}
|
|
}
|