/** * @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); }
/** * @return string */ public function getPermissions() { return $this->formatter->formatPermissions($this->splFileInfo); }