PHP Class GitWrapper\Test\GitWorkingCopyTest

Inheritance: extends GitWrapper\Test\GitWrapperTestCase
Afficher le fichier Open project: cpliakas/git-wrapper

Méthodes publiques

Méthode Description
addRemoteDataProvider ( )
getRemoteUrlDataProvider ( )
getWorkingCopy ( string $directory = self::WORKING_DIR ) : GitWorkingCopy Clones the local repo and returns an initialized GitWorkingCopy object.
setUp ( ) Creates and initializes the local repository used for testing.
tearDown ( ) Removes the local repository.
testAddRemote ( $options, $asserts )
testCallError ( )
testClearOutput ( )
testCommitWithAuthor ( )
testFetchAll ( )
testGetBranches ( )
testGetOutput ( )
testGetRemote ( )
testGetRemoteUrl ( $remote, $operation, $expected )
testGetRemotes ( )
testGitAdd ( )
testGitApply ( )
testGitArchive ( )
testGitBisect ( )
testGitBranch ( )
testGitClean ( )
testGitConfig ( )
testGitDiff ( )
testGitGrep ( )
testGitLog ( )
testGitMv ( )
testGitPull ( )
testGitPullErrorWithEmptyErrorOutput ( ) This tests an odd case where sometimes even though a command fails and an exception is thrown the result of Process::getErrorOutput() is empty because the output is sent to STDOUT instead of STDERR. So there's a code path in GitProcess::run() to check the output from Process::getErrorOutput() and if it's empty use the result from Process::getOutput() instead
testGitRemote ( )
testGitReset ( )
testGitRm ( )
testGitShow ( )
testGitStatus ( )
testGitTag ( )
testHasChanges ( )
testHasRemote ( )
testIsAhead ( )
testIsBehind ( )
testIsCloned ( )
testIsTracking ( )
testIsUpToDate ( )
testLiveOutput ( )
testMerge ( )
testNeedsMerge ( )
testOutputListener ( )
testRebase ( )
testRemoveRemote ( )

Méthodes protégées

Méthode Description
assertGitTag ( GitWorkingCopy $repository, $tag )
assertNoGitTag ( GitWorkingCopy $repository, $tag )
assertNoRemoteBranch ( GitWorkingCopy $repository, $branch )
assertNoRemoteBranches ( GitWorkingCopy $repository, $branches )
assertNoRemoteMaster ( GitWorkingCopy $repository )
assertRemoteBranch ( GitWorkingCopy $repository, $branch )
assertRemoteBranches ( GitWorkingCopy $repository, $branches )
assertRemoteMaster ( GitWorkingCopy $repository )
createRemote ( )

Method Details

addRemoteDataProvider() public méthode

assertGitTag() protected méthode

protected assertGitTag ( GitWorkingCopy $repository, $tag )
$repository GitWrapper\GitWorkingCopy

assertNoGitTag() protected méthode

protected assertNoGitTag ( GitWorkingCopy $repository, $tag )
$repository GitWrapper\GitWorkingCopy

assertNoRemoteBranch() protected méthode

protected assertNoRemoteBranch ( GitWorkingCopy $repository, $branch )
$repository GitWrapper\GitWorkingCopy

assertNoRemoteBranches() protected méthode

protected assertNoRemoteBranches ( GitWorkingCopy $repository, $branches )
$repository GitWrapper\GitWorkingCopy

assertNoRemoteMaster() protected méthode

protected assertNoRemoteMaster ( GitWorkingCopy $repository )
$repository GitWrapper\GitWorkingCopy

assertRemoteBranch() protected méthode

protected assertRemoteBranch ( GitWorkingCopy $repository, $branch )
$repository GitWrapper\GitWorkingCopy

assertRemoteBranches() protected méthode

protected assertRemoteBranches ( GitWorkingCopy $repository, $branches )
$repository GitWrapper\GitWorkingCopy

assertRemoteMaster() protected méthode

protected assertRemoteMaster ( GitWorkingCopy $repository )
$repository GitWrapper\GitWorkingCopy

createRemote() protected méthode

protected createRemote ( )

getRemoteUrlDataProvider() public méthode

getWorkingCopy() public méthode

Clones the local repo and returns an initialized GitWorkingCopy object.
public getWorkingCopy ( string $directory = self::WORKING_DIR ) : GitWorkingCopy
$directory string The directory that the repository is being cloned to, defaults to "test/wc".
Résultat GitWrapper\GitWorkingCopy

setUp() public méthode

Creates and initializes the local repository used for testing.
public setUp ( )

tearDown() public méthode

Removes the local repository.
public tearDown ( )

testAddRemote() public méthode

public testAddRemote ( $options, $asserts )

testCallError() public méthode

public testCallError ( )

testClearOutput() public méthode

public testClearOutput ( )

testCommitWithAuthor() public méthode

testFetchAll() public méthode

public testFetchAll ( )

testGetBranches() public méthode

public testGetBranches ( )

testGetOutput() public méthode

public testGetOutput ( )

testGetRemote() public méthode

public testGetRemote ( )

testGetRemoteUrl() public méthode

public testGetRemoteUrl ( $remote, $operation, $expected )

testGetRemotes() public méthode

public testGetRemotes ( )

testGitAdd() public méthode

public testGitAdd ( )

testGitApply() public méthode

public testGitApply ( )

testGitArchive() public méthode

public testGitArchive ( )

testGitBisect() public méthode

public testGitBisect ( )

testGitBranch() public méthode

public testGitBranch ( )

testGitClean() public méthode

public testGitClean ( )

testGitConfig() public méthode

public testGitConfig ( )

testGitDiff() public méthode

public testGitDiff ( )

testGitGrep() public méthode

public testGitGrep ( )

testGitLog() public méthode

public testGitLog ( )

testGitMv() public méthode

public testGitMv ( )

testGitPull() public méthode

public testGitPull ( )

testGitPullErrorWithEmptyErrorOutput() public méthode

This tests an odd case where sometimes even though a command fails and an exception is thrown the result of Process::getErrorOutput() is empty because the output is sent to STDOUT instead of STDERR. So there's a code path in GitProcess::run() to check the output from Process::getErrorOutput() and if it's empty use the result from Process::getOutput() instead

testGitRemote() public méthode

public testGitRemote ( )

testGitReset() public méthode

public testGitReset ( )

testGitRm() public méthode

public testGitRm ( )

testGitShow() public méthode

public testGitShow ( )

testGitStatus() public méthode

public testGitStatus ( )

testGitTag() public méthode

public testGitTag ( )

testHasChanges() public méthode

public testHasChanges ( )

testHasRemote() public méthode

public testHasRemote ( )

testIsAhead() public méthode

public testIsAhead ( )

testIsBehind() public méthode

public testIsBehind ( )

testIsCloned() public méthode

public testIsCloned ( )

testIsTracking() public méthode

public testIsTracking ( )

testIsUpToDate() public méthode

public testIsUpToDate ( )

testLiveOutput() public méthode

public testLiveOutput ( )

testMerge() public méthode

public testMerge ( )

testNeedsMerge() public méthode

public testNeedsMerge ( )

testOutputListener() public méthode

public testOutputListener ( )

testRebase() public méthode

public testRebase ( )

testRemoveRemote() public méthode

public testRemoveRemote ( )