From 44cac513c51e7fd7c3a265476f0113a46b3f4e7c Mon Sep 17 00:00:00 2001 From: Achraf Bardan Date: Wed, 9 Feb 2022 21:46:51 +0100 Subject: [PATCH] Laravel 9 ready. --- .gitignore | 3 ++- composer.json | 6 +++--- tests/ResponseTest.php | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 35ec8a0..9e94d33 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/ composer.lock -vendor/ \ No newline at end of file +vendor/ +.phpunit.result.cache diff --git a/composer.json b/composer.json index 491b9aa..80ab70b 100644 --- a/composer.json +++ b/composer.json @@ -9,11 +9,11 @@ ], "license": "MIT", "require": { - "illuminate/http": "~5.0|~6.0|~7.0|~8.0", - "illuminate/routing": "~5.0|~6.0|~7.0|~8.0" + "illuminate/http": "~5.0|~6.0|~7.0|~8.0|~9.0", + "illuminate/routing": "~5.0|~6.0|~7.0|~8.0|~9.0" }, "require-dev": { - "phpunit/phpunit": "~5.0" + "phpunit/phpunit": "^9.0" }, "autoload": { "files": [ diff --git a/tests/ResponseTest.php b/tests/ResponseTest.php index c1a9fc2..6750582 100644 --- a/tests/ResponseTest.php +++ b/tests/ResponseTest.php @@ -5,7 +5,7 @@ use Illuminate\Http\JsonResponse; use PHPUnit\Framework\TestCase; -class ResponseTest extends TestCase +class ResponseTest extends TestCase { /** @test */ public function it_returns_a_response() @@ -118,7 +118,7 @@ public function it_returns_a_correct_format_on_errors_message() $data = (array) $response->getData(); - $this->assertArraySubset([ + $this->assertEquals([ 'message' => 'User not found', 'errors' => [], ], $data);