[lang-ref] ソースファイル名(パス)を取得 ( php )
<?php
public function testGetSourceDirectoryPath(): void
{
// __DIR__
$expected = dirname(__FILE__);
$actual = __DIR__;
$this->assertSame($expected, $actual);
}
<?php
public function testGetSourceDirectoryPath(): void
{
// __DIR__
$expected = dirname(__FILE__);
$actual = __DIR__;
$this->assertSame($expected, $actual);
}