From 47fbe6fdfe77d8f887c9bbd0aad9ac6a6c7b148f Mon Sep 17 00:00:00 2001 From: affonso Date: Wed, 19 Jan 2022 19:10:40 +0000 Subject: [PATCH 1/2] chore: update php 8.1 --- .gitignore | 4 +++- composer.json | 9 ++++----- phpunit.xml | 21 +++++++++++---------- tests/ClientTest.php | 4 +--- tests/Services/LeadTest.php | 2 +- tests/TestCase.php | 6 +++--- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index 2882678..bb64978 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ composer.lock .DS_Store vendor index.php -build \ No newline at end of file +build +.phpunit.result.cache +.devcontainer diff --git a/composer.json b/composer.json index 78cce39..8a3dc7c 100644 --- a/composer.json +++ b/composer.json @@ -7,14 +7,13 @@ "inboud" ], "require": { - "php": "~5.6|~7.0", + "php": "^7.3|^8.0", "guzzlehttp/guzzle": "~6.0" }, "require-dev": { - "codeclimate/php-test-reporter": "~0.3", - "mockery/mockery": "~0.9", - "phpunit/phpunit": "~5.0", - "squizlabs/php_codesniffer": "~2.3", + "mockery/mockery": "^1.4", + "phpunit/phpunit": "^9.5.10", + "squizlabs/php_codesniffer": "3.6", "larapack/dd": "^1.1" }, "autoload-dev": { diff --git a/phpunit.xml b/phpunit.xml index ead8fbb..b175f6e 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -14,16 +14,17 @@ tests - - - src/ - - + + + src + + + + + + + - - - - - + \ No newline at end of file diff --git a/tests/ClientTest.php b/tests/ClientTest.php index c1352a6..3fff9cd 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -3,8 +3,6 @@ namespace bubbstore\RDStation; use Mockery; -use GuzzleHttp\ClientInterface; -use bubbstore\RDStation\Services\Lead; use bubbstore\RDStation\Contracts\LeadInterface; class ClientTest extends TestCase @@ -14,7 +12,7 @@ class ClientTest extends TestCase */ protected $rd; - public function setUp() + public function setUp(): void { parent::setUp(); diff --git a/tests/Services/LeadTest.php b/tests/Services/LeadTest.php index a3f8aa7..34817a4 100644 --- a/tests/Services/LeadTest.php +++ b/tests/Services/LeadTest.php @@ -14,7 +14,7 @@ class LeadTest extends TestCase */ protected $rd; - public function setUp() + public function setUp(): void { parent::setUp(); diff --git a/tests/TestCase.php b/tests/TestCase.php index 39c4137..c728f8e 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -6,12 +6,12 @@ use GuzzleHttp\Client; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Response; -use PHPUnit_Framework_TestCase; use GuzzleHttp\Handler\MockHandler; +use PHPUnit\Framework\TestCase as FrameworkTestCase; -abstract class TestCase extends PHPUnit_Framework_TestCase +abstract class TestCase extends FrameworkTestCase { - public function tearDown() + public function tearDown(): void { Mockery::close(); } From d1f4d07e56a2b05b3ee41b417c397ef7f11e39e2 Mon Sep 17 00:00:00 2001 From: Affonso Becco Date: Wed, 11 May 2022 11:05:10 -0300 Subject: [PATCH 2/2] chore: update versao do guzzle --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8a3dc7c..4f62bcc 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ ], "require": { "php": "^7.3|^8.0", - "guzzlehttp/guzzle": "~6.0" + "guzzlehttp/guzzle": "^7.0" }, "require-dev": { "mockery/mockery": "^1.4",