PHP Class PhpBench\Tests\Unit\Environment\Provider\GitTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: dantleech/phpbench

Public Methods

Method Description
setUp ( )
tearDown ( )
testGetVcsBranch ( ) It should show the branch.
testGetVcsCommitsh ( ) It should show the commitsh.
testGetVcsInformation ( ) It should return the VCS information for the current git repository.
testIsApplicable ( ) It should return TRUE if the CWD is a git repository.
testIsNotApplicable ( ) It should return FALSE if the CWD is not a git repository.
testNotApplicableIfGitNotFound ( ) It should not be applicable if GIT is not available.

Private Methods

Method Description
clean ( )
exec ( $cmd )

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testGetVcsBranch() public method

It should show the branch.
public testGetVcsBranch ( )

testGetVcsCommitsh() public method

It should show the commitsh.
public testGetVcsCommitsh ( )

testGetVcsInformation() public method

It should return the VCS information for the current git repository.

testIsApplicable() public method

It should return TRUE if the CWD is a git repository.
public testIsApplicable ( )

testIsNotApplicable() public method

It should return FALSE if the CWD is not a git repository.
public testIsNotApplicable ( )

testNotApplicableIfGitNotFound() public method

It should not be applicable if GIT is not available.