public function testFindFileWithoutExtension()
 {
     $image = $this->getMockImage();
     $this->filesystem->copy($this->fixturesDir . '/assets/cats.jpeg', $this->tempDir . '/cats');
     $this->imagine->expects($this->once())->method('open')->with(realpath($this->tempDir . '/cats'))->will($this->returnValue($image));
     $loader = new FileSystemLoader($this->imagine, array(), $this->tempDir);
     $this->assertSame($image, $loader->find('/cats.jpeg'));
 }
 /**
  * Constructor.
  *
  * @param ImagineInterface  $imagine
  * @param array             $formats
  * @param string            $rootPath
  * @param DocumentManager   $manager
  * @param string            $class
  */
 public function __construct(ImagineInterface $imagine, array $formats, $rootPath, DocumentManager $manager, $class = null)
 {
     parent::__construct($imagine, $formats, $rootPath);
     $this->manager = $manager;
     $this->class = $class;
     $this->rootPath = $rootPath;
 }
 /**
  * Constructor.
  *
  * @param ImagineInterface       $imagine
  * @param array                  $formats
  * @param string                 $rootPath
  * @param TransformerInterface[] $transformers
  */
 public function __construct(ImagineInterface $imagine, $formats, $rootPath, array $transformers)
 {
     parent::__construct($imagine, $formats, $rootPath);
     $this->transformers = $transformers;
 }