[lang-ref] ( get_current_directory ) ( php )
<?php
public function testGetCurrentDirectory(): void
{
// getcwd()
chdir('/private/tmp');
$this->assertSame('/private/tmp', getcwd());
}
<?php
public function testGetCurrentDirectory(): void
{
// getcwd()
chdir('/private/tmp');
$this->assertSame('/private/tmp', getcwd());
}