/** * @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); }
/** * @return string */ public function getImageThumbnailPath() { return $this->pathHelper->getImageThumbnailPath($this->splFileInfo, $this->getPathname(), $this->getDisplayName(), $this->thumbBasePath, $this->relativePath); }