예제 #1
0
 /**
  * @covers   DmFileman\Helper\FileInfo\Path
  * @requires PHP 5.6
  */
 public function testGetImageThumbnailPath()
 {
     $image = vfs\vfsStream::url('upload/orig/img.jpg');
     $splFileInfoMock = $this->getMock('\\SplFileInfo', [], [], '', false);
     $pathname = $image;
     $displayName = basename($image);
     $thumbBasePath = '/upload/thumb';
     $relativePath = '/';
     $actualResult = $this->sut->getImageThumbnailPath($splFileInfoMock, $pathname, $displayName, $thumbBasePath, $relativePath);
     $this->assertEquals('/upload/thumb/img.jpg', $actualResult);
 }
예제 #2
0
 /**
  * @return string
  */
 public function getImageThumbnailPath()
 {
     return $this->pathHelper->getImageThumbnailPath($this->splFileInfo, $this->getPathname(), $this->getDisplayName(), $this->thumbBasePath, $this->relativePath);
 }