Skip to content

Commit

Permalink
Expose LibraryInstallerTest properties to child classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Aug 16, 2012
1 parent de4e9c4 commit a2171e2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Composer/Test/Installer/LibraryInstallerTest.php
Expand Up @@ -20,14 +20,14 @@


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()
{ {
Expand Down Expand Up @@ -233,7 +233,7 @@ public function testGetInstallPathWithTargetDir()
$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'))
Expand Down

0 comments on commit a2171e2

Please sign in to comment.