mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-11 16:49:40 +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());
|
|
}
|
|
}
|