1
0
Fork 0

Changed Package class due to upstream changes

pull/1567/head
Matthieu Moquet 2012-08-27 10:00:31 +02:00 committed by Nils Adermann
parent 20e717f975
commit 2fd17ecff8
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ namespace Composer\Test\Package\Archiver;
use Composer\Util\Filesystem; use Composer\Util\Filesystem;
use Composer\Util\ProcessExecutor; use Composer\Util\ProcessExecutor;
use Composer\Package\MemoryPackage; use Composer\Package\Package;
/** /**
* @author Till Klampaeckel <till@php.net> * @author Till Klampaeckel <till@php.net>
@ -80,7 +80,7 @@ abstract class ArchiverTest extends \PHPUnit_Framework_TestCase
protected function setupPackage() protected function setupPackage()
{ {
$package = new MemoryPackage('archivertest/archivertest', 'master', 'master'); $package = new Package('archivertest/archivertest', 'master', 'master');
$package->setSourceUrl(realpath($this->testDir)); $package->setSourceUrl(realpath($this->testDir));
$package->setSourceReference('master'); $package->setSourceReference('master');
$package->setSourceType('git'); $package->setSourceType('git');

View File

@ -13,7 +13,7 @@
namespace Composer\Test\Package\Archiver; namespace Composer\Test\Package\Archiver;
use Composer\Package\Archiver\MercurialArchiver; use Composer\Package\Archiver\MercurialArchiver;
use Composer\Package\MemoryPackage; use Composer\Package\Package;
/** /**
* @author Matthieu Moquet <matthieu@moquet.net> * @author Matthieu Moquet <matthieu@moquet.net>
@ -93,7 +93,7 @@ class MercurialArchiverTest extends ArchiverTest
protected function setupMercurialPackage() protected function setupMercurialPackage()
{ {
$package = new MemoryPackage('archivertest/archivertest', 'master', 'master'); $package = new Package('archivertest/archivertest', 'master', 'master');
$package->setSourceUrl(realpath($this->testDir)); $package->setSourceUrl(realpath($this->testDir));
$package->setSourceReference('default'); $package->setSourceReference('default');
$package->setSourceType('hg'); $package->setSourceType('hg');