1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Make composer/io part of the activate plugin API rather than constructor args

This commit is contained in:
Nils Adermann 2013-08-15 16:58:48 +02:00
parent b83535d2d9
commit b9c5758670
8 changed files with 22 additions and 13 deletions

View file

@ -77,7 +77,7 @@ class PluginInstallerTest extends \PHPUnit_Framework_TestCase
public function testInstallNewPlugin()
{
$this->repository
->expects($this->once())
->expects($this->exactly(2))
->method('getPackages')
->will($this->returnValue(array()));
$installer = new PluginInstaller($this->io, $this->composer);
@ -92,7 +92,7 @@ class PluginInstallerTest extends \PHPUnit_Framework_TestCase
public function testInstallMultiplePlugins()
{
$this->repository
->expects($this->once())
->expects($this->exactly(2))
->method('getPackages')
->will($this->returnValue(array()));
$installer = new PluginInstaller($this->io, $this->composer);
@ -110,7 +110,7 @@ class PluginInstallerTest extends \PHPUnit_Framework_TestCase
public function testUpgradeWithNewClassName()
{
$this->repository
->expects($this->once())
->expects($this->exactly(3))
->method('getPackages')
->will($this->returnValue(array($this->packages[0])));
$this->repository
@ -129,7 +129,7 @@ class PluginInstallerTest extends \PHPUnit_Framework_TestCase
public function testUpgradeWithSameClassName()
{
$this->repository
->expects($this->once())
->expects($this->exactly(3))
->method('getPackages')
->will($this->returnValue(array($this->packages[1])));
$this->repository