Skip to content

Commit

Permalink
Merge pull request #3 from lsnepomuceno/feature/adds-support-laravel-…
Browse files Browse the repository at this point in the history
…10-and-php-82

Feature/adds support laravel 10 and php 82
  • Loading branch information
lsnepomuceno authored Feb 8, 2023
2 parents 92fb07a + d465630 commit 3ed8c99
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.1 || ^8.2",
"ext-json": "*",
"ext-fileinfo": "*",
"ext-mbstring": "*",
"illuminate/support": "^9",
"illuminate/http": "^9",
"illuminate/support": "^9 || ^10",
"illuminate/http": "^9 || ^10",
"guzzlehttp/guzzle": "^7.5"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/ApiCepProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testValidatesOriginalResponseStructure()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $originalProviderResponse);
$this->assertArrayHasKey($field, (array) $originalProviderResponse);
}
}

Expand All @@ -60,12 +60,12 @@ public function testValidatesIfTheRequestWillBeExecutedSuccessfully()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}

foreach ($optionalFields as $field) {
$this->isNull($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/BrasilApiV1ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testValidatesOriginalResponseStructure()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $originalProviderResponse);
$this->assertArrayHasKey($field, (array) $originalProviderResponse);
}
}

Expand All @@ -60,12 +60,12 @@ public function testValidatesIfTheRequestWillBeExecutedSuccessfully()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}

foreach ($optionalFields as $field) {
$this->isNull($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/BrasilApiV2ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testValidatesOriginalResponseStructure()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $originalProviderResponse);
$this->assertArrayHasKey($field, (array) $originalProviderResponse);
}
}

Expand All @@ -60,12 +60,12 @@ public function testValidatesIfTheRequestWillBeExecutedSuccessfully()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}

foreach ($optionalFields as $field) {
$this->isNull($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/CepLaProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testValidatesOriginalResponseStructure()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $originalProviderResponse);
$this->assertArrayHasKey($field, (array) $originalProviderResponse);
}
}

Expand All @@ -60,12 +60,12 @@ public function testValidatesIfTheRequestWillBeExecutedSuccessfully()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}

foreach ($optionalFields as $field) {
$this->isNull($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/OpenCepProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testValidatesOriginalResponseStructure()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $originalProviderResponse);
$this->assertArrayHasKey($field, (array) $originalProviderResponse);
}
}

Expand All @@ -60,12 +60,12 @@ public function testValidatesIfTheRequestWillBeExecutedSuccessfully()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}

foreach ($optionalFields as $field) {
$this->isNull($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/PagarmeCepProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testValidatesOriginalResponseStructure()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $originalProviderResponse);
$this->assertArrayHasKey($field, (array) $originalProviderResponse);
}
}

Expand All @@ -60,12 +60,12 @@ public function testValidatesIfTheRequestWillBeExecutedSuccessfully()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}

foreach ($optionalFields as $field) {
$this->isNull($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/PostomonCepProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testValidatesOriginalResponseStructure()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $originalProviderResponse);
$this->assertArrayHasKey($field, (array) $originalProviderResponse);
}
}

Expand All @@ -60,12 +60,12 @@ public function testValidatesIfTheRequestWillBeExecutedSuccessfully()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}

foreach ($optionalFields as $field) {
$this->isNull($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/ViaCepProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testValidatesOriginalResponseStructure()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $originalProviderResponse);
$this->assertArrayHasKey($field, (array) $originalProviderResponse);
}
}

Expand All @@ -60,12 +60,12 @@ public function testValidatesIfTheRequestWillBeExecutedSuccessfully()

foreach ($requiredFields as $field) {
$this->assertNotEmpty($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}

foreach ($optionalFields as $field) {
$this->isNull($field);
$this->assertObjectHasAttribute($field, $response);
$this->assertArrayHasKey($field, (array) $response);
}
}

Expand Down

0 comments on commit 3ed8c99

Please sign in to comment.