Skip to content

Commit

Permalink
Merge pull request #6 from AchrafBardan/master
Browse files Browse the repository at this point in the history
Made laravel 9 ready.
  • Loading branch information
dees040 authored Feb 10, 2022
2 parents 20e0618 + 44cac51 commit b1fd9de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
composer.lock
vendor/
vendor/
.phpunit.result.cache
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions tests/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b1fd9de

Please sign in to comment.