/**
  * @dataProvider getConfigs
  */
 public function testApplyVersion($path, $version, $format)
 {
     $staticVersionStrategy = new StaticVersionStrategy($version, $format);
     $formatted = sprintf($format ?: '%s?%s', $path, $version);
     $this->assertEquals($formatted, $staticVersionStrategy->applyVersion($path));
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param FilesystemInterface $filesystem
  * @param string              $baseSalt
  * @param string              $format
  */
 public function __construct(FilesystemInterface $filesystem, $baseSalt, $format = null)
 {
     parent::__construct(null, $format);
     $this->filesystem = $filesystem;
     $this->baseSalt = $baseSalt;
 }