mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Do not install root package as a vendor if some dependency requires it, closes #480
Also add some tests for the installer.
This commit is contained in:
parent
762f469cd9
commit
0995933183
7 changed files with 245 additions and 19 deletions
26
tests/Composer/Test/Mock/WritableRepositoryMock.php
Normal file
26
tests/Composer/Test/Mock/WritableRepositoryMock.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer\Test\Mock;
|
||||
|
||||
use Composer\Repository\ArrayRepository;
|
||||
use Composer\Repository\WritableRepositoryInterface;
|
||||
|
||||
class WritableRepositoryMock extends ArrayRepository implements WritableRepositoryInterface
|
||||
{
|
||||
public function reload()
|
||||
{
|
||||
}
|
||||
|
||||
public function write()
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue