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;
15 use Composer\EventDispatcher\EventDispatcher;
16 use Composer\IO\IOInterface;
17 use Composer\Package\PackageInterface;
18 use Composer\Repository\RepositoryInterface;
21 * Fixture for assets repository tests.
23 * @author François Pluchino <francois.pluchino@gmail.com>
25 class MockAssetRepository implements RepositoryInterface
30 * @param array $repoConfig
31 * @param IOInterface $io
32 * @param Config $config
33 * @param EventDispatcher|null $eventDispatcher
35 public function __construct(array $repoConfig, IOInterface $io, Config $config,
36 EventDispatcher $eventDispatcher = null)
43 public function hasPackage(PackageInterface $package)
51 public function findPackage($name, $version)
59 public function findPackages($name, $version = null)
67 public function getPackages()
75 public function search($query, $mode = 0, $type = null)
83 public function count()