mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Updated to clean up code and rename variables to camelcase
This commit is contained in:
parent
f7d9f3d8b4
commit
8207518e04
4 changed files with 40 additions and 48 deletions
|
@ -54,12 +54,12 @@ class PerforceDriverTest extends \PHPUnit_Framework_TestCase
|
|||
public function testInitializeCapturesVariablesFromRepoConfig()
|
||||
{
|
||||
$this->setUp();
|
||||
$repo_config = array(
|
||||
$repoConfig = array(
|
||||
'url' => 'TEST_PERFORCE_URL',
|
||||
'depot' => 'TEST_DEPOT_CONFIG',
|
||||
'branch' => 'TEST_BRANCH_CONFIG'
|
||||
);
|
||||
$driver = new PerforceDriver($repo_config, $this->io, $this->config, $this->process, $this->remoteFileSystem);
|
||||
$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'),
|
||||
|
@ -80,12 +80,12 @@ class PerforceDriverTest extends \PHPUnit_Framework_TestCase
|
|||
public function testInitializeLogsInAndConnectsClient()
|
||||
{
|
||||
$this->setUp();
|
||||
$repo_config = array(
|
||||
$repoConfig = array(
|
||||
'url' => 'TEST_PERFORCE_URL',
|
||||
'depot' => 'TEST_DEPOT_CONFIG',
|
||||
'branch' => 'TEST_BRANCH_CONFIG'
|
||||
);
|
||||
$driver = new PerforceDriver($repo_config, $this->io, $this->config, $this->process, $this->remoteFileSystem);
|
||||
$driver = new PerforceDriver($repoConfig, $this->io, $this->config, $this->process, $this->remoteFileSystem);
|
||||
$perforce = $this->getMockBuilder('Composer\Util\Perforce')->disableOriginalConstructor()->getMock();
|
||||
$perforce->expects($this->at(0))
|
||||
->method('p4Login')
|
||||
|
@ -105,12 +105,12 @@ class PerforceDriverTest extends \PHPUnit_Framework_TestCase
|
|||
public function testHasComposerFile()
|
||||
{
|
||||
$this->setUp();
|
||||
$repo_config = array(
|
||||
$repoConfig = array(
|
||||
'url' => 'TEST_PERFORCE_URL',
|
||||
'depot' => 'TEST_DEPOT_CONFIG',
|
||||
'branch' => 'TEST_BRANCH_CONFIG'
|
||||
);
|
||||
$driver = new PerforceDriver($repo_config, $this->io, $this->config, $this->process, $this->remoteFileSystem);
|
||||
$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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue