mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-09-19 13:05:15 +00:00
88 lines
1.7 KiB
PHP
88 lines
1.7 KiB
PHP
|
<?php
|
||
|
|
||
|
/*
|
||
|
* This file is part of the Fxp Composer Asset Plugin package.
|
||
|
*
|
||
|
* (c) François Pluchino <francois.pluchino@gmail.com>
|
||
|
*
|
||
|
* For the full copyright and license information, please view the LICENSE
|
||
|
* file that was distributed with this source code.
|
||
|
*/
|
||
|
|
||
|
namespace Fxp\Composer\AssetPlugin\Tests\Fixtures\Repository;
|
||
|
|
||
|
use Composer\Config;
|
||
|
use Composer\EventDispatcher\EventDispatcher;
|
||
|
use Composer\IO\IOInterface;
|
||
|
use Composer\Package\PackageInterface;
|
||
|
use Composer\Repository\RepositoryInterface;
|
||
|
|
||
|
/**
|
||
|
* Fixture for assets repository tests.
|
||
|
*
|
||
|
* @author François Pluchino <francois.pluchino@gmail.com>
|
||
|
*/
|
||
|
class MockAssetRepository implements RepositoryInterface
|
||
|
{
|
||
|
/**
|
||
|
* Constructor.
|
||
|
*
|
||
|
* @param array $repoConfig
|
||
|
* @param IOInterface $io
|
||
|
* @param Config $config
|
||
|
* @param EventDispatcher|null $eventDispatcher
|
||
|
*/
|
||
|
public function __construct(array $repoConfig, IOInterface $io, Config $config,
|
||
|
EventDispatcher $eventDispatcher = null)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function hasPackage(PackageInterface $package)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function findPackage($name, $version)
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function findPackages($name, $version = null)
|
||
|
{
|
||
|
return array();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function getPackages()
|
||
|
{
|
||
|
return array();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function search($query, $mode = 0, $type = null)
|
||
|
{
|
||
|
return array();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function count()
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
}
|