getFilePath() public method

Returns path for filtered image from original path, using the VariationPathGenerator.
public getFilePath ( string $path, string $filter ) : string
$path string
$filter string
return string
コード例 #1
0
 /**
  * @dataProvider getFilePathProvider
  */
 public function testGetFilePath($path, $filter, $expected)
 {
     $this->assertSame($expected, $this->imageResolver->getFilePath($path, $filter));
 }
コード例 #2
0
 /**
  * @dataProvider getFilePathProvider
  */
 public function testGetFilePath($path, $filter, $expected)
 {
     $this->variationPathGenerator->expects($this->once())->method('getVariationPath')->with($path, $filter)->willReturn($expected);
     $this->assertSame($expected, $this->imageResolver->getFilePath($path, $filter));
 }