PHP Class Bart\Git\CommitTest

Inheritance: extends Bart\BaseTestCase
Afficher le fichier Open project: box/bart Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

getStubCommit() public static méthode

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
Résultat Commit

testAuthor() public méthode

public testAuthor ( )

testCommitProject() public méthode

public testCommitProject ( )

testCommitter() public méthode

public testCommitter ( )

testJiras() public méthode

public testJiras ( )

testMessageFull() public méthode

public testMessageFull ( )

testMessageRawBody() public méthode

public testMessageRawBody ( )

testMessageSubject() public méthode

public testMessageSubject ( )

testRawFileContentsReal() public méthode

testRawFileContentsStubbed() public méthode