Skip to content

Commit

Permalink
Optimize API v3 calls
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Aug 1, 2019
1 parent d4a71f0 commit 8bec5b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
CHANGELOG
=========

### [2.0.1](https://github.com/webeweb/haveibeenpwned-library/tree/v2.0.1) (2019-08-01)

- Optimize API v3 calls

### [2.0.0](https://github.com/webeweb/haveibeenpwned-library/tree/v2.0.0) (2019-07-31)

> IMPORTANT NOTICE:
>
> - APIProviderV1 was renamed APIv1Provider
> - APIProviderV2 was renamed APIv2Provider
> - WBW\Library\HaveIBeenPwned\Provider\APIProviderV1 was renamed APIv1Provider
> - WBW\Library\HaveIBeenPwned\Provider\APIProviderV2 was renamed APIv2Provider
- Add API v3 provider

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
"dev-master": "2.x-dev"
}
},
"autoload": {
Expand Down
8 changes: 4 additions & 4 deletions tests/Provider/APIv3ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function testBreach() {
$breachRequest = new BreachRequest();
$breachRequest->setName("Adobe");

$obj = new APIv3Provider($this->apiKey);
$obj = new APIv3Provider();

$res = $obj->breach($breachRequest);
$this->assertInstanceOf(BreachesResponse::class, $res);
Expand Down Expand Up @@ -133,7 +133,7 @@ public function testBreaches() {
$breachesRequest = new BreachesRequest();
$breachesRequest->setDomain("adobe.com");

$obj = new APIv3Provider($this->apiKey);
$obj = new APIv3Provider();

$res = $obj->breaches($breachesRequest);
$this->assertInstanceOf(BreachesResponse::class, $res);
Expand Down Expand Up @@ -163,7 +163,7 @@ public function testDataClasses() {
// Set a Data classes request mock.
$dataClassesRequest = new DataClassesRequest();

$obj = new APIv3Provider($this->apiKey);
$obj = new APIv3Provider();

$res = $obj->dataClasses($dataClassesRequest);
$this->assertInstanceOf(DataClassesResponse::class, $res);
Expand Down Expand Up @@ -206,7 +206,7 @@ public function testRange() {
$rangeRequest = new RangeRequest();
$rangeRequest->setHash("21BD1");

$obj = new APIv3Provider($this->apiKey);
$obj = new APIv3Provider();

$res = $obj->range($rangeRequest);
$this->assertInstanceOf(RangesResponse::class, $res);
Expand Down

0 comments on commit 8bec5b8

Please sign in to comment.