Skip to content

Commit

Permalink
Some unit tests failed on Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Jul 22, 2019
1 parent 3b7c623 commit 919c64b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/Provider/APIProviderV1Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
namespace WBW\Library\HaveIBeenPwned\Tests\Provider;

use Exception;
use GuzzleHttp\Exception\ClientException;
use InvalidArgumentException;
use WBW\Library\HaveIBeenPwned\API\RequestInterface;
use WBW\Library\HaveIBeenPwned\Exception\APIException;
use WBW\Library\HaveIBeenPwned\Model\Request\BreachedAccountRequest;
use WBW\Library\HaveIBeenPwned\Model\Response\BreachesResponse;
use WBW\Library\HaveIBeenPwned\Provider\APIProviderV1;
Expand Down Expand Up @@ -51,7 +51,7 @@ public function testBreachedAccount() {
$this->assertInstanceOf(BreachesResponse::class, $res);
} catch (Exception $ex) {

$this->assertInstanceOf(ClientException::class, $ex);
$this->assertInstanceOf(APIException::class, $ex);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/Provider/APIProviderV2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
namespace WBW\Library\HaveIBeenPwned\Tests\Provider;

use Exception;
use GuzzleHttp\Exception\ClientException;
use WBW\Library\HaveIBeenPwned\API\RequestInterface;
use WBW\Library\HaveIBeenPwned\Exception\APIException;
use WBW\Library\HaveIBeenPwned\Model\Request\BreachedAccountRequest;
use WBW\Library\HaveIBeenPwned\Model\Request\BreachesRequest;
use WBW\Library\HaveIBeenPwned\Model\Request\BreachRequest;
Expand Down Expand Up @@ -83,7 +83,7 @@ public function testBreachedAccount() {
$this->assertInstanceOf(BreachesResponse::class, $res);
} catch (Exception $ex) {

$this->assertInstanceOf(ClientException::class, $ex);
$this->assertInstanceOf(APIException::class, $ex);
}
}

Expand All @@ -108,7 +108,7 @@ public function testBreachedAccountWith404() {
$this->assertInstanceOf(BreachesResponse::class, $res);
} catch (Exception $ex) {

$this->assertInstanceOf(ClientException::class, $ex);
$this->assertInstanceOf(APIException::class, $ex);
}
}

Expand Down

0 comments on commit 919c64b

Please sign in to comment.