\JGithubHooksTest
Test class for JGithubHooks.
Synopsis
class JGithubHooksTest
extends PHPUnit_Framework_TestCase
{
- // members
- protected JRegistry $options;
- protected JGithubHttp $client;
- protected JHttpResponse $response;
- protected JGithubHooks $object;
- protected $sampleString;
- protected $errorString;
- // methods
- protected void setUp()
- public void testCreate()
- public void testCreateFailure()
- public void testCreateUnauthorisedEvent()
- public void testDelete()
- public void testDeleteFailure()
- public void testEdit()
- public void testEditFailure()
- public void testEditUnauthorisedEvent()
- public void testGet()
- public void testGetFailure()
- public void testGetList()
- public void testGetListFailure()
- public void testTest()
- public void testTestFailure()
Hierarchy
Extends
Members
protected
- $client — JGithubHttp
- $errorString — string
- $object — JGithubHooks
- $options — JRegistry
- $response — JHttpResponse
- $sampleString — string
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
public
- testCreate() — Tests the create method
- testCreateFailure() — Tests the create method - simulated failure
- testDelete() — Tests the delete method
- testDeleteFailure() — Tests the delete method - simulated failure
- testEdit() — Tests the edit method
- testEditFailure() — Tests the edit method - simulated failure
- testGet() — Tests the get method
- testGetFailure() — Tests the get method - failure
- testGetList() — Tests the getList method
- testGetListFailure() — Tests the getList method - failure
- testTest() — Tests the test method
- testTestFailure() — Tests the test method - failure