\JGitHubCommitsTest
Test class for JGitHubCommits.
Synopsis
class JGitHubCommitsTest
extends PHPUnit_Framework_TestCase
{
- // members
- protected JRegistry $options;
- protected JGithubHttp $client;
- protected JGithubCommits $object;
- protected $sampleString;
- protected $errorString;
- // methods
- protected void setUp()
- public void testCreate()
- public void testCreateFailure()
- public void testCreateCommitComment()
- public void testCreateCommitCommentFailure()
- public void testDeleteCommitComment()
- public void testDeleteCommitCommentFailure()
- public void testEditCommitComment()
- public void testEditCommitCommentFailure()
- public void testGetCommit()
- public void testGetCommitFailure()
- public void testGetCommitComment()
- public void testGetCommitCommentFailure()
- public void testGetCommitComments()
- public void testGetCommitCommentsFailure()
- public void testGetDiff()
- public void testGetDiffFailure()
- public void testGetList()
- public void testGetListFailure()
- public void testGetListComments()
- public void testGetListCommentsFailure()
Hierarchy
Extends
Members
protected
- $client — JGithubHttp
- $errorString — string
- $object — JGithubCommits
- $options — JRegistry
- $sampleString — string
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
public
- testCreate() — Tests the create method
- testCreateCommitComment() — Tests the createCommitComment method
- testCreateCommitCommentFailure() — Tests the createCommitComment method - simulated failure
- testCreateFailure() — Tests the create method - simulated failure
- testDeleteCommitComment() — Tests the deleteCommitComment method
- testDeleteCommitCommentFailure() — Tests the deleteCommitComment method - simulated failure
- testEditCommitComment() — Tests the editCommitComment method
- testEditCommitCommentFailure() — Tests the editCommitComment method - simulated failure
- testGetCommit() — Tests the getCommit method
- testGetCommitComment() — Tests the getCommitComment method
- testGetCommitCommentFailure() — Tests the getCommitComment method - failure
- testGetCommitComments() — Tests the getCommitComments method
- testGetCommitCommentsFailure() — Tests the getCommitComments method - failure
- testGetCommitFailure() — Tests the getCommit method - failure
- testGetDiff() — Tests the getDiff method
- testGetDiffFailure() — Tests the getDiff method - failure
- testGetList() — Tests the getList method
- testGetListComments() — Tests the getListComments method
- testGetListCommentsFailure() — Tests the getListComments method - failure
- testGetListFailure() — Tests the getList method - failure