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:
<?php class YourCommandTest extends TestCase { public function testExample() { $this->artisan('command', ['param' => 'value']); } }
2.1m questions
2.1m answers
60 comments
57.0k users