@@ -210,7 +210,7 @@ |
||
| 210 | 210 | * to request the report identifier. The identifier is used to check report generation status |
| 211 | 211 | * before downloading the report. |
| 212 | 212 | * |
| 213 | - * @param mixed $report |
|
| 213 | + * @param ReportRequest $report |
|
| 214 | 214 | * @param string $name |
| 215 | 215 | * |
| 216 | 216 | * @return string ReportRequestId |
@@ -279,7 +279,7 @@ |
||
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | /** |
| 282 | - * @param $code |
|
| 282 | + * @param integer $code |
|
| 283 | 283 | * @return SoapFault |
| 284 | 284 | */ |
| 285 | 285 | private function generateSoapFault($code) |
@@ -11,9 +11,8 @@ discard block |
||
| 11 | 11 | use BingAds\Reporting\ReportTime; |
| 12 | 12 | use Mockery; |
| 13 | 13 | use PHPUnit_Framework_TestCase; |
| 14 | -use Symfony\Component\Filesystem\Filesystem; |
|
| 15 | -use stdClass; |
|
| 16 | 14 | use SoapFault; |
| 15 | +use Symfony\Component\Filesystem\Filesystem; |
|
| 17 | 16 | use Werkspot\BingAdsApiBundle\Api\Client; |
| 18 | 17 | use Werkspot\BingAdsApiBundle\Api\Exceptions; |
| 19 | 18 | use Werkspot\BingAdsApiBundle\Api\Helper; |
@@ -21,6 +20,7 @@ discard block |
||
| 21 | 20 | use Werkspot\BingAdsApiBundle\Guzzle\OauthTokenService; |
| 22 | 21 | use Werkspot\BingAdsApiBundle\Model\AccessToken; |
| 23 | 22 | use Werkspot\BingAdsApiBundle\Model\ApiDetails; |
| 23 | +use stdClass; |
|
| 24 | 24 | |
| 25 | 25 | class GeoLocationPerformanceReportTest extends PHPUnit_Framework_TestCase |
| 26 | 26 | { |
@@ -5,21 +5,24 @@ |
||
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | 7 | * @param string $format (See BingAds SDK documentation) |
| 8 | + * @return void |
|
| 8 | 9 | */ |
| 9 | 10 | public function setFormat($format); |
| 10 | 11 | |
| 11 | 12 | /** |
| 12 | 13 | * @param bool $returnOnlyCompleteData |
| 14 | + * @return void |
|
| 13 | 15 | */ |
| 14 | 16 | public function setReturnOnlyCompleteData($returnOnlyCompleteData); |
| 15 | 17 | |
| 16 | 18 | /** |
| 17 | 19 | * @param string $language (See BingAds SDK documentation) |
| 20 | + * @return void |
|
| 18 | 21 | */ |
| 19 | 22 | public function setReportLanguage($language); |
| 20 | 23 | |
| 21 | 24 | /** |
| 22 | - * @return mixed |
|
| 25 | + * @return \BingAds\Reporting\ReportRequest |
|
| 23 | 26 | */ |
| 24 | 27 | public function getRequest(); |
| 25 | 28 | } |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\Client; |
| 6 | 6 | use GuzzleHttp\Exception\ClientException; |
| 7 | -use GuzzleHttp\Handler\MockHandler; |
|
| 8 | 7 | use GuzzleHttp\HandlerStack; |
| 8 | +use GuzzleHttp\Handler\MockHandler; |
|
| 9 | 9 | use GuzzleHttp\Psr7\Response; |
| 10 | 10 | use Mockery; |
| 11 | 11 | use PHPUnit_Framework_TestCase; |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\Client; |
| 6 | 6 | use GuzzleHttp\Exception\ClientException; |
| 7 | -use GuzzleHttp\Handler\MockHandler; |
|
| 8 | 7 | use GuzzleHttp\HandlerStack; |
| 8 | +use GuzzleHttp\Handler\MockHandler; |
|
| 9 | 9 | use GuzzleHttp\Psr7\Response; |
| 10 | 10 | use Mockery; |
| 11 | 11 | use PHPUnit_Framework_TestCase; |
@@ -112,6 +112,8 @@ discard block |
||
| 112 | 112 | * @var int $code |
| 113 | 113 | * @var null|string $type |
| 114 | 114 | * |
| 115 | + * @param integer $code |
|
| 116 | + * @param string $type |
|
| 115 | 117 | * @return MockInterface |
| 116 | 118 | */ |
| 117 | 119 | private function runClientSoapException($code, $type = null) |
@@ -172,6 +174,10 @@ discard block |
||
| 172 | 174 | return $apiClient; |
| 173 | 175 | } |
| 174 | 176 | |
| 177 | + /** |
|
| 178 | + * @param integer $code |
|
| 179 | + * @param string $type |
|
| 180 | + */ |
|
| 175 | 181 | private function generateSoapFault($code, $type = null) |
| 176 | 182 | { |
| 177 | 183 | $message = "an error message {$code}"; |