Expose LibraryInstallerTest properties to child classes
parent
de4e9c4022
commit
a2171e2ed1
|
@ -20,14 +20,14 @@ use Composer\Config;
|
||||||
|
|
||||||
class LibraryInstallerTest extends TestCase
|
class LibraryInstallerTest extends TestCase
|
||||||
{
|
{
|
||||||
private $composer;
|
protected $composer;
|
||||||
private $config;
|
protected $config;
|
||||||
private $vendorDir;
|
protected $vendorDir;
|
||||||
private $binDir;
|
protected $binDir;
|
||||||
private $dm;
|
protected $dm;
|
||||||
private $repository;
|
protected $repository;
|
||||||
private $io;
|
protected $io;
|
||||||
private $fs;
|
protected $fs;
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
|
@ -233,7 +233,7 @@ class LibraryInstallerTest extends TestCase
|
||||||
$this->assertEquals($this->vendorDir.'/'.$package->getPrettyName().'/Some/Namespace', $library->getInstallPath($package));
|
$this->assertEquals($this->vendorDir.'/'.$package->getPrettyName().'/Some/Namespace', $library->getInstallPath($package));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createPackageMock()
|
protected function createPackageMock()
|
||||||
{
|
{
|
||||||
return $this->getMockBuilder('Composer\Package\MemoryPackage')
|
return $this->getMockBuilder('Composer\Package\MemoryPackage')
|
||||||
->setConstructorArgs(array(md5(rand()), '1.0.0.0', '1.0.0'))
|
->setConstructorArgs(array(md5(rand()), '1.0.0.0', '1.0.0'))
|
||||||
|
|
Loading…
Reference in New Issue