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..4f62bcc 100644 --- a/composer.json +++ b/composer.json @@ -7,14 +7,13 @@ "inboud" ], "require": { - "php": "~5.6|~7.0", - "guzzlehttp/guzzle": "~6.0" + "php": "^7.3|^8.0", + "guzzlehttp/guzzle": "^7.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(); }