PHP Class Platformsh\Cli\Tests\GitHelperTest

Inheritance: extends PHPUnit_Framework_TestCase, use trait HasTempDirTrait
Show file Open project: commerceguys/platform-cli

Protected Properties

Property Type Description
$gitHelper Platformsh\Cli\Helper\GitHelper

Public Methods

Method Description
setUp ( )
testBranchExists ( ) Test GitHelper::branchExists().
testBranchExistsUnicode ( ) Test GitHelper::branchExists() with unicode branch names.
testCheckOutNew ( ) Test GitHelper::checkOutNew().
testEnsureInstalled ( ) Test GitHelper::ensureInstalled().
testGetConfig ( ) Test GitHelper::getConfig().
testGetCurrentBranch ( ) Test GitHelper::getCurrentBranch().
testGetMergedBranches ( ) Test GitHelper::getMergedBranches().
testGetRoot ( ) Test GitHelper::isRepository().

Protected Methods

Method Description
getRepositoryDir ( ) : string Get a Git repository directory.

Method Details

getRepositoryDir() protected method

Get a Git repository directory.
protected getRepositoryDir ( ) : string
return string

setUp() public method

public setUp ( )

testBranchExists() public method

Test GitHelper::branchExists().
public testBranchExists ( )

testBranchExistsUnicode() public method

Test GitHelper::branchExists() with unicode branch names.

testCheckOutNew() public method

Test GitHelper::checkOutNew().
public testCheckOutNew ( )

testEnsureInstalled() public method

Test GitHelper::ensureInstalled().
public testEnsureInstalled ( )

testGetConfig() public method

Test GitHelper::getConfig().
public testGetConfig ( )

testGetCurrentBranch() public method

Test GitHelper::getCurrentBranch().

testGetMergedBranches() public method

Test GitHelper::getMergedBranches().

testGetRoot() public method

Test GitHelper::isRepository().
public testGetRoot ( )

Property Details

$gitHelper protected property

protected GitHelper,Platformsh\Cli\Helper $gitHelper
return Platformsh\Cli\Helper\GitHelper