Skip to content

Commit

Permalink
Support Laravel 10 (#16)
Browse files Browse the repository at this point in the history
* Allow laravel 10

* Restructured test files
  • Loading branch information
SPie authored Mar 3, 2023
1 parent 128b394 commit 48d0417
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ report/
.idea/
composer.lock
*.swp
.phpunit.result.cache
.phpunit.result.cache
.projections.json
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ language: php
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'

notifications:
email:
Expand Down
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"license": "MIT",
"type": "library",
"require": {
"php": ">=7.4.0 || >= 8.0.0",
"illuminate/auth": "^7.0 || ^8.0 || ^9.0",
"illuminate/config": "^7.0 || ^8.0 || ^9.0",
"illuminate/console": "^7.0 || ^8.0 || ^9.0",
"illuminate/contracts": "^7.0 || ^8.0 || ^9.0",
"illuminate/support": "^7.0 || ^8.0 || ^9.0",
"illuminate/cache": "^7.0 || ^8.0 || ^9.0",
"php": ">=7.4.0",
"illuminate/auth": ">=7.0",
"illuminate/config": ">=7.0",
"illuminate/console": ">=7.0",
"illuminate/contracts": ">=7.0",
"illuminate/support": ">=7.0",
"illuminate/cache": ">=7.0",
"lcobucci/jwt": "^4.0",
"nesbot/carbon": "^2.0",
"vlucas/phpdotenv": "^4.0 || ^5.2"
Expand All @@ -38,6 +38,9 @@
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"optimize-autoloader": true
"optimize-autoloader": true,
"allow-plugins": {
"phpstan/extension-installer": false
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\Auth;

use Illuminate\Auth\AuthenticationException;
use Illuminate\Auth\Events\Attempting;
Expand All @@ -22,7 +22,6 @@
use SPie\LaravelJWT\Contracts\TokenBlockList;
use SPie\LaravelJWT\Contracts\TokenProvider;
use SPie\LaravelJWT\Exceptions\InvalidTokenException;
use SPie\LaravelJWT\Contracts\JWT;
use SPie\LaravelJWT\Contracts\JWTHandler;
use SPie\LaravelJWT\Test\HttpHelper;
use SPie\LaravelJWT\Test\JWTHelper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\BlockList;

use Illuminate\Cache\Repository;
use Mockery;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\Events;

use Illuminate\Auth\Events\Attempting;
use Illuminate\Auth\Events\Failed;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\Middleware;

use Illuminate\Auth\AuthenticationException;
use PHPUnit\Framework\TestCase;
use SPie\LaravelJWT\Contracts\JWTGuard;
use SPie\LaravelJWT\Middleware\JWTTokens;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\Providers;

use Illuminate\Auth\AuthManager;
use Illuminate\Config\Repository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\Providers;

use Illuminate\Auth\AuthManager;
use Illuminate\Config\Repository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\Providers;

use Illuminate\Auth\AuthManager;
use Illuminate\Contracts\Auth\UserProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\TokenProvider;

use Illuminate\Contracts\Cookie\Factory;
use Illuminate\Http\Request;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\TokenProvider;

use Illuminate\Http\Request;
use PHPUnit\Framework\TestCase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SPie\LaravelJWT\Test\Unit;
namespace SPie\LaravelJWT\Test\Unit\TokenProvider;

use Illuminate\Http\Request;
use PHPUnit\Framework\TestCase;
Expand Down

0 comments on commit 48d0417

Please sign in to comment.