monsterlane / lumen-console-test by monsterlane

Laravel Console Tests adaptation for Lumen framework.
563
0
1
Package Data
Maintainer Username: monsterlane
Package Create Date: 2022-05-22
Package Last Update: 2022-05-24
Language: PHP
License: MIT
Last Refreshed: 2024-05-01 15:00:03
Package Statistics
Total Downloads: 563
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

Lumen Console Test

This is a small library to port the console tests from Laravel 9.x for Lumen 5.8+.

To chain assertion methods off $this->artisan('command') include Monsterlane\Testing\Concerns\InteractsWithConsole trait on your test class.


MIT License

Copyright (c) 2022 Jonathan Down

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.