|
@@ 209-217 (lines=9) @@
|
| 206 |
|
/** |
| 207 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\RequestException |
| 208 |
|
*/ |
| 209 |
|
public function testRequestException() |
| 210 |
|
{ |
| 211 |
|
$util = $this->createUtil($this->createGuzzleClient(http_build_query([ |
| 212 |
|
'errorCode' => -1, |
| 213 |
|
'errorMessage' => 'Invalid Request', |
| 214 |
|
]))); |
| 215 |
|
|
| 216 |
|
$util->autoApplySSL([]); |
| 217 |
|
} |
| 218 |
|
|
| 219 |
|
/** |
| 220 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\ArgumentException |
|
@@ 222-231 (lines=10) @@
|
| 219 |
|
/** |
| 220 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\ArgumentException |
| 221 |
|
*/ |
| 222 |
|
public function testArgumentException() |
| 223 |
|
{ |
| 224 |
|
$util = $this->createUtil($this->createGuzzleClient(http_build_query([ |
| 225 |
|
'errorCode' => -2, |
| 226 |
|
'errorItem' => 'field', |
| 227 |
|
'errorMessage' => 'Invalid Request', |
| 228 |
|
]))); |
| 229 |
|
|
| 230 |
|
$util->autoApplySSL([]); |
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
/** |
| 234 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\AccountException |
|
@@ 236-244 (lines=9) @@
|
| 233 |
|
/** |
| 234 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\AccountException |
| 235 |
|
*/ |
| 236 |
|
public function testAccountException() |
| 237 |
|
{ |
| 238 |
|
$util = $this->createUtil($this->createGuzzleClient(http_build_query([ |
| 239 |
|
'errorCode' => -15, |
| 240 |
|
'errorMessage' => 'Invalid Request', |
| 241 |
|
]))); |
| 242 |
|
|
| 243 |
|
$util->autoApplySSL([]); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
/** |
| 247 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\CsrException |
|
@@ 249-257 (lines=9) @@
|
| 246 |
|
/** |
| 247 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\CsrException |
| 248 |
|
*/ |
| 249 |
|
public function testCsrException() |
| 250 |
|
{ |
| 251 |
|
$util = $this->createUtil($this->createGuzzleClient(http_build_query([ |
| 252 |
|
'errorCode' => -5, |
| 253 |
|
'errorMessage' => 'Invalid Request', |
| 254 |
|
]))); |
| 255 |
|
|
| 256 |
|
$util->autoApplySSL([]); |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
/** |
| 260 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\UnknownApiException |
|
@@ 262-270 (lines=9) @@
|
| 259 |
|
/** |
| 260 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\UnknownApiException |
| 261 |
|
*/ |
| 262 |
|
public function testUnknownApiException() |
| 263 |
|
{ |
| 264 |
|
$util = $this->createUtil($this->createGuzzleClient(http_build_query([ |
| 265 |
|
'errorCode' => -14, |
| 266 |
|
'errorMessage' => 'Invalid Request', |
| 267 |
|
]))); |
| 268 |
|
|
| 269 |
|
$util->autoApplySSL([]); |
| 270 |
|
} |
| 271 |
|
|
| 272 |
|
/** |
| 273 |
|
* @expectedException \Checkdomain\Comodo\Model\Exception\UnknownException |