Skip to content

Commit

Permalink
Improve BitreserveClientTest dockblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuno Rafael Rocha committed Apr 19, 2015
1 parent caeff1b commit ee334bf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/Bitreserve/Tests/Unit/BitreserveClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ public function getDefaultRequestHttpMethods()
);
}

/**
* Get BitreserveClient mock.
*
* @return BitreserveClient
*/
protected function getBitreserveClientMock()
{
$methods = array('get', 'post', 'patch', 'put', 'delete', 'request', 'setOption', 'getOption', 'setHeaders', 'getToken');
Expand All @@ -454,6 +459,11 @@ protected function getBitreserveClientMock()
->getMock();
}

/**
* Get HttpClient mock.
*
* @return HttpClient
*/
protected function getHttpClientMock()
{
$methods = array('get', 'post', 'patch', 'put', 'delete', 'request', 'setOption', 'setHeaders');
Expand All @@ -463,6 +473,13 @@ protected function getHttpClientMock()
->getMock();
}

/**
* Get Reponse mock.
*
* @param string $content Response content.
*
* @return Response
*/
protected function getResponseMock($content = null)
{
$response = $this->getMockBuilder('Bitreserve\HttpClient\Message\Response')
Expand Down

0 comments on commit ee334bf

Please sign in to comment.