Elgg\Filesystem\DirectoryTest::testCanGetFileInsideItself PHP Метод

testCanGetFileInsideItself() публичный Метод

public testCanGetFileInsideItself ( Elgg\Filesystem\Directory $directory )
$directory Elgg\Filesystem\Directory
    public function testCanGetFileInsideItself(Directory $directory)
    {
        $directory->putContents('/foo/bar.php', 'bar');
        $file = $directory->chroot('foo')->getFile('bar.php');
        $this->assertInstanceOf(File::class, $file);
        $this->assertEquals('bar', $file->getContents());
    }