I build an Artisan Command to receive data from a socket, and I want to write a unit-testing for this command but I'm not sure how to write such a test.
Anyone an idea how to write it?
I build an Artisan Command to receive data from a socket, and I want to write a unit-testing for this command but I'm not sure how to write such a test.
Anyone an idea how to write it?
It is much easier now:
Maybe useful for someone
Artisan command Test Cases in Laravel 5.7
https://laravel-news.com/testing-artisan-commands-in-laravel-5-7
Example of test