public function testInitializeCapturesVariablesFromRepoConfig()
 {
     $this->setUp();
     $repoConfig = array('url' => 'TEST_PERFORCE_URL', 'depot' => 'TEST_DEPOT_CONFIG', 'branch' => 'TEST_BRANCH_CONFIG');
     $driver = new PerforceDriver($repoConfig, $this->io, $this->config, $this->process, $this->remoteFileSystem);
     $process = $this->getMock('Composer\\Util\\ProcessExecutor');
     $arguments = array(array('depot' => 'TEST_DEPOT', 'branch' => 'TEST_BRANCH'), 'port' => 'TEST_PORT', 'path' => $this->testPath, $process, true, 'TEST');
     $perforce = $this->getMock('Composer\\Util\\Perforce', null, $arguments);
     $driver->setPerforce($perforce);
     $driver->initialize();
     $this->assertEquals('TEST_PERFORCE_URL', $driver->getUrl());
     $this->assertEquals('TEST_DEPOT_CONFIG', $driver->getDepot());
     $this->assertEquals('TEST_BRANCH_CONFIG', $driver->getBranch());
 }
 public function testInitializeCapturesVariablesFromRepoConfig()
 {
     $driver = new PerforceDriver($this->repoConfig, $this->io, $this->config, $this->process, $this->remoteFileSystem);
     $driver->initialize();
     $this->assertEquals(self::TEST_URL, $driver->getUrl());
     $this->assertEquals(self::TEST_DEPOT, $driver->getDepot());
     $this->assertEquals(self::TEST_BRANCH, $driver->getBranch());
 }