Symfony\Component\Filesystem\Tests\FilesystemTest::testChgrpLink PHP Method

    public function testChgrpLink()
    {
        $this->markAsSkippedIfLinkIsMissing();
        $file = $this->workspace . DIRECTORY_SEPARATOR . 'file';
        $link = $this->workspace . DIRECTORY_SEPARATOR . 'link';
        touch($file);
        $this->filesystem->hardlink($file, $link);
        $this->filesystem->chgrp($link, $this->getFileGroup($link));
    }
FilesystemTest