1
0
Fork 0

Fix tests

pull/658/head
Jordi Boggiano 2012-04-18 01:06:23 +02:00
parent bf6fd10a8a
commit ef300ca56a
8 changed files with 20 additions and 20 deletions

View File

@ -21,6 +21,6 @@ use Composer\Package\PackageInterface;
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
interface InstalledRepositoryInterface
interface InstalledRepositoryInterface extends WritableRepositoryInterface
{
}

View File

@ -4,16 +4,16 @@ namespace Installer;
use Composer\Installer\InstallerInterface;
use Composer\Package\PackageInterface;
use Composer\Repository\WritableRepositoryInterface;
use Composer\Repository\InstalledRepositoryInterface;
class Custom implements InstallerInterface
{
public $version = 'installer-v1';
public function supports($packageType) {}
public function isInstalled(WritableRepositoryInterface $repo, PackageInterface $package) {}
public function install(WritableRepositoryInterface $repo, PackageInterface $package) {}
public function update(WritableRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {}
public function uninstall(WritableRepositoryInterface $repo, PackageInterface $package) {}
public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package) {}
public function install(InstalledRepositoryInterface $repo, PackageInterface $package) {}
public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {}
public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) {}
public function getInstallPath(PackageInterface $package) {}
}

View File

@ -4,16 +4,16 @@ namespace Installer;
use Composer\Installer\InstallerInterface;
use Composer\Package\PackageInterface;
use Composer\Repository\WritableRepositoryInterface;
use Composer\Repository\InstalledRepositoryInterface;
class Custom2 implements InstallerInterface
{
public $version = 'installer-v2';
public function supports($packageType) {}
public function isInstalled(WritableRepositoryInterface $repo, PackageInterface $package) {}
public function install(WritableRepositoryInterface $repo, PackageInterface $package) {}
public function update(WritableRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {}
public function uninstall(WritableRepositoryInterface $repo, PackageInterface $package) {}
public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package) {}
public function install(InstalledRepositoryInterface $repo, PackageInterface $package) {}
public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {}
public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) {}
public function getInstallPath(PackageInterface $package) {}
}

View File

@ -4,16 +4,16 @@ namespace Installer;
use Composer\Installer\InstallerInterface;
use Composer\Package\PackageInterface;
use Composer\Repository\WritableRepositoryInterface;
use Composer\Repository\InstalledRepositoryInterface;
class Custom2 implements InstallerInterface
{
public $version = 'installer-v3';
public function supports($packageType) {}
public function isInstalled(WritableRepositoryInterface $repo, PackageInterface $package) {}
public function install(WritableRepositoryInterface $repo, PackageInterface $package) {}
public function update(WritableRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {}
public function uninstall(WritableRepositoryInterface $repo, PackageInterface $package) {}
public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package) {}
public function install(InstalledRepositoryInterface $repo, PackageInterface $package) {}
public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {}
public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) {}
public function getInstallPath(PackageInterface $package) {}
}

View File

@ -21,7 +21,7 @@ class InstallationManagerTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->repository = $this->getMock('Composer\Repository\WritableRepositoryInterface');
$this->repository = $this->getMock('Composer\Repository\InstalledRepositoryInterface');
}
public function testVendorDirOutsideTheWorkingDir()

View File

@ -34,7 +34,7 @@ class InstallerInstallerTest extends \PHPUnit_Framework_TestCase
->disableOriginalConstructor()
->getMock();
$this->repository = $this->getMock('Composer\Repository\WritableRepositoryInterface');
$this->repository = $this->getMock('Composer\Repository\InstalledRepositoryInterface');
$this->io = $this->getMock('Composer\IO\IOInterface');
}

View File

@ -40,7 +40,7 @@ class LibraryInstallerTest extends TestCase
->disableOriginalConstructor()
->getMock();
$this->repository = $this->getMock('Composer\Repository\WritableRepositoryInterface');
$this->repository = $this->getMock('Composer\Repository\InstalledRepositoryInterface');
$this->io = $this->getMock('Composer\IO\IOInterface');
}

View File

@ -22,7 +22,7 @@ class MetapackageInstallerTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
$this->repository = $this->getMock('Composer\Repository\WritableRepositoryInterface');
$this->repository = $this->getMock('Composer\Repository\InstalledRepositoryInterface');
$this->io = $this->getMock('Composer\IO\IOInterface');