mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-02 17:56:09 +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());
|
|
}
|
|
}
|