/** * @covers DmFileman\Helper\FileInfo\Formatter * @requires PHP 5.6 */ public function testFormatGroup() { $groupId = posix_getegid(); $splFileInfoMock = $this->getSplFileInfoMock(); $splFileInfoMock->expects($this->any())->method('getGroup')->will($this->returnValue($groupId)); $actualResult = $this->sut->formatGroup($splFileInfoMock); $this->assertEquals(posix_getpwuid($groupId)['name'], $actualResult); }
/** * @return string */ public function getGroup() { return $this->formatter->formatGroup($this->splFileInfo); }