getFilePath() public méthode

Returns path for filtered image from original path, using the VariationPathGenerator.
public getFilePath ( string $path, string $filter ) : string
$path string
$filter string
Résultat string
 /**
  * @dataProvider getFilePathProvider
  */
 public function testGetFilePath($path, $filter, $expected)
 {
     $this->assertSame($expected, $this->imageResolver->getFilePath($path, $filter));
 }
 /**
  * @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));
 }