示例#1
0
 /**
  * @covers   DmFileman\Helper\FileInfo\Formatter
  * @requires PHP 5.6
  */
 public function testFormatPermissions()
 {
     $splFileInfoMock = $this->getSplFileInfoMock();
     $splFileInfoMock->expects($this->any())->method('getPerms')->will($this->returnValue(33188));
     $actualResult = $this->sut->formatPermissions($splFileInfoMock);
     $this->assertEquals('0644', $actualResult);
 }
示例#2
0
 /**
  * @return string
  */
 public function getPermissions()
 {
     return $this->formatter->formatPermissions($this->splFileInfo);
 }