lumen-testing
lumen-testing copied to clipboard
Slight incompatibility with Lumen 5.8 under PHP 7.1, and PHPunit 7.5.18
The signature of AlbertCht\Lumen\Testing\Concerns\InteractsWithAuthentication::be($user, $driver = NULL)
is not compatible in lumen-testing v1.1 from Packagist.
In TestCase.php line 9:
Declaration of AlbertCht\Lumen\Testing\Concerns\InteractsWithAuthentication
::be($user, $driver = NULL) should be compatible with Laravel\Lumen\Testing
\TestCase::be(Illuminate\Contracts\Auth\Authenticatable $user, $driver = NU
LL)
For ease of reading:
Declaration of
AlbertCht\Lumen\Testing\Concerns\InteractsWithAuthentication::be($user, $driver = NULL)
should be compatible with
Laravel\Lumen\Testing\TestCase::be(Illuminate\Contracts\Auth\Authenticatable $user, $driver = NU
LL)
I suspect this only triggers when you use Auth in your Lumen API.
It would be nice to roll a v1.1_.1_ composer package with some of the fixes.
Today I bumped into this again when running tests that made find this bug.