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']); } }
1.4m articles
1.4m replys
5 comments
56.9k users