\JGithubAccountTest
Test class for JGithubAccount.
Synopsis
class JGithubAccountTest
extends PHPUnit_Framework_TestCase
{
- // members
- protected JRegistry $options;
- protected JGithubHttp $client;
- protected JGithubAccount $object;
- protected $sampleString;
- protected $errorString;
- // methods
- protected void setUp()
- public void testCreateAuthorisation()
- public void testCreateAuthorisationFailure()
- public void testDeleteAuthorisation()
- public void testDeleteAuthorisationFailure()
- public void testEditAuthorisationAddScopes()
- public void testEditAuthorisationRemoveScopes()
- public void testEditAuthorisationScopes()
- public void testEditAuthorisationFailure()
- public void testEditAuthorisationTooManyScopes()
- public void testGetAuthorisation()
- public void testGetAuthorisationFailure()
- public void testGetAuthorisations()
- public void testGetAuthorisationsFailure()
- public void testGetRateLimit()
- public void testGetRateLimitFailure()
Hierarchy
Extends
Members
protected
- $client — JGithubHttp
- $errorString — string
- $object — JGithubAccount
- $options — JRegistry
- $sampleString — string
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
public
- testCreateAuthorisation() — Tests the createAuthorisation method
- testCreateAuthorisationFailure() — Tests the createAuthorisation method - simulated failure
- testDeleteAuthorisation() — Tests the deleteAuthorisation method
- testDeleteAuthorisationFailure() — Tests the deleteAuthorisation method - simulated failure
- testEditAuthorisationAddScopes() — Tests the editAuthorisation method - Add scopes
- testEditAuthorisationFailure() — Tests the editAuthorisation method - simulated failure
- testEditAuthorisationRemoveScopes() — Tests the editAuthorisation method - Remove scopes
- testEditAuthorisationScopes() — Tests the editAuthorisation method - Scopes param
- testEditAuthorisationTooManyScopes() — Tests the editAuthorisation method - too many scope params
- testGetAuthorisation() — Tests the getAuthorisation method
- testGetAuthorisationFailure() — Tests the getAuthorisation method - failure
- testGetAuthorisations() — Tests the getAuthorisations method
- testGetAuthorisationsFailure() — Tests the getAuthorisations method - failure
- testGetRateLimit() — Tests the getRateLimit method
- testGetRateLimitFailure() — Tests the getRateLimit method - failure