PHP Class Bart\Git\CommitTest

Inheritance: extends Bart\BaseTestCase
Datei anzeigen Open project: box/bart Class Usage Examples

Public Methods

Method Description
getStubCommit ( Bart\BaseTestCase $phpu, string $revision = 'HEAD', callable $configure = null ) : Commit Utility method to create a stub Commit for any tests that need one Custom expectations can be set via the $configure parameter
testAuthor ( )
testCommitProject ( )
testCommitter ( )
testJiras ( )
testMessageFull ( )
testMessageRawBody ( )
testMessageSubject ( )
testRawFileContentsReal ( )
testRawFileContentsStubbed ( )

Private Methods

Method Description
stubGitRootForMessage ( string $message ) Sets up GitRoot stub to expect to be asked for this message at HEAD

Method Details

getStubCommit() public static method

Utility method to create a stub Commit for any tests that need one Custom expectations can be set via the $configure parameter
public static getStubCommit ( Bart\BaseTestCase $phpu, string $revision = 'HEAD', callable $configure = null ) : Commit
$phpu Bart\BaseTestCase
$revision string
$configure callable Shmock configuration function
return Commit

testAuthor() public method

public testAuthor ( )

testCommitProject() public method

public testCommitProject ( )

testCommitter() public method

public testCommitter ( )

testJiras() public method

public testJiras ( )

testMessageFull() public method

public testMessageFull ( )

testMessageRawBody() public method

public testMessageRawBody ( )

testMessageSubject() public method

public testMessageSubject ( )

testRawFileContentsReal() public method

testRawFileContentsStubbed() public method