lumen-testing
lumen-testing copied to clipboard
A testing suite for Lumen like Laravel does.
I try to use the package with Lumen 6 and PHP 7.2 and this not work. The request does not pass the values. ```php // I try $this->json('POST', 'my-route', ['value1'...
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...
Closes #23
See https://github.com/albertcht/lumen-testing/issues/12
Update the requirements to support Lumen 8.x
Does it work with Lumen 7.x?
Normally Lumen decorates the Request with the routing parameters. E.g. in `routes/web.php`: ```php $router->group(['prefix' => '/{prefixId:[0-9]+}'], function () use ($router) { $router->get('/something/{somethingId:[0-9]+}', 'SomethingController@show'); } ``` You would be able to...
Ref: https://github.com/albertcht/lumen-testing/issues/13#issuecomment-570165431 Meaning any function that is used to test a Lumen JSON API might be broken at any point. Even though that is kind of the core use case...