12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace Composer\Test\Mock;
- use Composer\Composer;
- use Composer\Config;
- use Composer\Factory;
- use Composer\Repository\RepositoryManager;
- use Composer\Repository\WritableRepositoryInterface;
- use Composer\Installer;
- use Composer\IO\IOInterface;
- use Composer\Test\TestCase;
- use Composer\Util\Loop;
- class FactoryMock extends Factory
- {
- public static function createConfig(IOInterface $io = null, $cwd = null)
- {
- $config = new Config(true, $cwd);
- $config->merge(array(
- 'config' => array('home' => TestCase::getUniqueTmpDirectory()),
- 'repositories' => array('packagist' => false),
- ));
- return $config;
- }
- protected function addLocalRepository(IOInterface $io, RepositoryManager $rm, $vendorDir)
- {
- }
- public function createInstallationManager(Loop $loop)
- {
- return new InstallationManagerMock();
- }
- protected function createDefaultInstallers(Installer\InstallationManager $im, Composer $composer, IOInterface $io)
- {
- }
- protected function purgePackages(WritableRepositoryInterface $repo, Installer\InstallationManager $im)
- {
- }
- }
|