@@ -90,7 +90,7 @@ |
||
| 90 | 90 | * @param string $algo Hash algorithm (e.g. md5, crc32, etc) |
| 91 | 91 | * @param bool $rawOutput Whether or not to use raw output |
| 92 | 92 | * |
| 93 | - * @return bool|string Returns false on failure or a hash string on success |
|
| 93 | + * @return false|string Returns false on failure or a hash string on success |
|
| 94 | 94 | */ |
| 95 | 95 | public static function getHash(StreamInterface $stream, $algo, $rawOutput = false) |
| 96 | 96 | { |
@@ -9,11 +9,17 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class BatchBuilderTest extends \Guzzle\Tests\GuzzleTestCase |
| 11 | 11 | { |
| 12 | + /** |
|
| 13 | + * @return \Guzzle\Batch\BatchTransferInterface |
|
| 14 | + */ |
|
| 12 | 15 | private function getMockTransfer() |
| 13 | 16 | { |
| 14 | 17 | return $this->getMock('Guzzle\Batch\BatchTransferInterface'); |
| 15 | 18 | } |
| 16 | 19 | |
| 20 | + /** |
|
| 21 | + * @return \Guzzle\Batch\BatchDivisorInterface |
|
| 22 | + */ |
|
| 17 | 23 | private function getMockDivisor() |
| 18 | 24 | { |
| 19 | 25 | return $this->getMock('Guzzle\Batch\BatchDivisorInterface'); |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Guzzle\Http\Client; |
| 6 | 6 | use Guzzle\Http\EntityBody; |
| 7 | -use Guzzle\Http\Message\Request; |
|
| 8 | 7 | use Guzzle\Http\Message\RequestFactory; |
| 9 | 8 | use Guzzle\Http\RedirectPlugin; |
| 10 | 9 | use Guzzle\Http\Message\EntityEnclosingRequest; |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use Guzzle\Http\Message\Request; |
| 12 | 12 | use Guzzle\Http\QueryString; |
| 13 | 13 | use Guzzle\Parser\Message\MessageParser; |
| 14 | -use Guzzle\Plugin\Log\LogPlugin; |
|
| 15 | 14 | use Guzzle\Plugin\Mock\MockPlugin; |
| 16 | 15 | |
| 17 | 16 | /** |
@@ -474,6 +474,7 @@ |
||
| 474 | 474 | } |
| 475 | 475 | |
| 476 | 476 | /** |
| 477 | + * @param integer $code |
|
| 477 | 478 | * @return Response |
| 478 | 479 | */ |
| 479 | 480 | private function getResponse($code, array $headers = null, EntityBody $body = null) |
@@ -22,6 +22,9 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | class DefaultRevalidationTest extends \Guzzle\Tests\GuzzleTestCase |
| 24 | 24 | { |
| 25 | + /** |
|
| 26 | + * @param string $time |
|
| 27 | + */ |
|
| 25 | 28 | protected function getHttpDate($time) |
| 26 | 29 | { |
| 27 | 30 | return gmdate(ClientInterface::HTTP_DATE, strtotime($time)); |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Doctrine\Common\Cache\ArrayCache; |
| 15 | 15 | use Guzzle\Plugin\Cache\DefaultCacheStorage; |
| 16 | 16 | use Guzzle\Plugin\Mock\MockPlugin; |
| 17 | -use Guzzle\Tests\Http\Server; |
|
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * @covers Guzzle\Plugin\Cache\DefaultRevalidation |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Guzzle\Tests\Plugin\ErrorResponse; |
| 4 | 4 | |
| 5 | 5 | use Guzzle\Service\Client; |
| 6 | -use Guzzle\Http\Message\Response; |
|
| 7 | 6 | use Guzzle\Plugin\ErrorResponse\ErrorResponsePlugin; |
| 8 | 7 | use Guzzle\Service\Description\ServiceDescription; |
| 9 | 8 | use Guzzle\Tests\Mock\ErrorResponseMock; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Guzzle\Tests\Plugin\History; |
| 4 | 4 | |
| 5 | 5 | use Guzzle\Http\Client; |
| 6 | -use Guzzle\Http\Message\Request; |
|
| 7 | 6 | use Guzzle\Http\Message\Response; |
| 8 | 7 | use Guzzle\Plugin\History\HistoryPlugin; |
| 9 | 8 | use Guzzle\Plugin\Mock\MockPlugin; |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Guzzle\Http\Message\RequestFactory; |
| 6 | 6 | use Guzzle\Service\Command\ClosureCommand; |
| 7 | -use Guzzle\Service\Client; |
|
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * @covers Guzzle\Service\Command\ClosureCommand |