4 * This file is part of the Fxp Composer Asset Plugin package.
6 * (c) François Pluchino <francois.pluchino@gmail.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Fxp\Composer\AssetPlugin\Tests\Fixtures\Repository\Vcs;
15 use Composer\IO\IOInterface;
16 use Composer\Repository\Vcs\VcsDriverInterface;
21 * @author François Pluchino <francois.pluchino@gmail.com>
23 class MockVcsDriver implements VcsDriverInterface
28 public static $supported = true;
33 public $contents = null;
38 public function initialize()
46 public function getComposerInformation($identifier)
54 public function getRootIdentifier()
62 public function getBranches()
70 public function getTags()
78 public function getDist($identifier)
86 public function getSource($identifier)
94 public function getUrl()
102 public function hasComposerFile($identifier)
110 public function cleanup()
118 public static function supports(IOInterface $io, Config $config, $url, $deep = false)
120 return static::$supported;
126 protected function getContents()
128 return $this->contents;
134 public function getFileContent($file, $identifier)
141 public function getChangeDate($identifier)
143 return new \DateTime();