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