예제 #1
0
 /**
  * @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);
 }
예제 #2
0
 /**
  * @return string
  */
 public function getGroup()
 {
     return $this->formatter->formatGroup($this->splFileInfo);
 }