\JGithubGistsTest
Test class for JGithubGists.
Synopsis
class JGithubGistsTest
extends PHPUnit_Framework_TestCase
{
- // members
- protected JRegistry $options;
- protected JGithubHttp $client;
- protected JGithubGists $object;
- protected $sampleString;
- protected $errorString;
- // methods
- protected void setUp()
- public void testCreate()
- public void testCreateGistFromFile()
- public void testCreateGistFromFileNotFound()
- public void testCreateFailure()
- public void testCreateComment()
- public void testCreateCommentFailure()
- public void testDelete()
- public void testDeleteFailure()
- public void testDeleteComment()
- public void testDeleteCommentFailure()
- public void testEdit()
- public void testEditFailure()
- public void testEditComment()
- public void testEditCommentFailure()
- public void testFork()
- public void testForkFailure()
- public void testGet()
- public void testGetFailure()
- public void testGetComment()
- public void testGetCommentFailure()
- public void testGetComments()
- public void testGetCommentsFailure()
- public void testGetList()
- public void testGetListFailure()
- public void testGetListByUser()
- public void testGetListByUserFailure()
- public void testGetListPublic()
- public void testGetListPublicFailure()
- public void testGetListStarred()
- public void testGetListStarredFailure()
- public void testIsStarredTrue()
- public void testIsStarredFalse()
- public void testIsStarredFailure()
- public void testStar()
- public void testStarFailure()
- public void testUnstar()
- public void testUnstarFailure()
Hierarchy
Extends
Members
protected
- $client — JGithubHttp
- $errorString — string
- $object — JGithubGists
- $options — JRegistry
- $sampleString — string
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
public
- testCreate() — Tests the create method
- testCreateComment() — Tests the createComment method - simulated failure
- testCreateCommentFailure() — Tests the createComment method - simulated failure
- testCreateFailure() — Tests the create method
- testCreateGistFromFile() — Tests the create method loading file content from a file
- testCreateGistFromFileNotFound() — Tests the create method loading file content from a file - file does not exist
- testDelete() — Tests the delete method
- testDeleteComment() — Tests the deleteComment method
- testDeleteCommentFailure() — Tests the deleteComment method - simulated failure
- testDeleteFailure() — Tests the delete method - simulated failure
- testEdit() — Tests the edit method
- testEditComment() — Tests the editComment method
- testEditCommentFailure() — Tests the editComment method - simulated failure
- testEditFailure() — Tests the edit method - simulated failure
- testFork() — Tests the fork method
- testForkFailure() — Tests the fork method - simulated failure
- testGet() — Tests the get method
- testGetComment() — Tests the getComment method
- testGetCommentFailure() — Tests the getComment method - simulated failure
- testGetComments() — Tests the getComments method
- testGetCommentsFailure() — Tests the getComments method - simulated failure
- testGetFailure() — Tests the get method - simulated failure
- testGetList() — Tests the getList method
- testGetListByUser() — Tests the getListByUser method
- testGetListByUserFailure() — Tests the getListByUser method - simulated failure
- testGetListFailure() — Tests the getList method - simulated failure
- testGetListPublic() — Tests the getListPublic method
- testGetListPublicFailure() — Tests the getListPublic method - simulated failure
- testGetListStarred() — Tests the getListStarred method
- testGetListStarredFailure() — Tests the getListStarred method - simulated failure
- testIsStarredFailure() — Tests the isStarred method expecting a failure response
- testIsStarredFalse() — Tests the isStarred method when the gist has not been starred
- testIsStarredTrue() — Tests the isStarred method when the gist has been starred
- testStar() — Tests the star method
- testStarFailure() — Tests the star method - simulated failure
- testUnstar() — Tests the unstar method
- testUnstarFailure() — Tests the unstar method - simulated failure