Laravel Phpunit Test
Create php test unit case php artisan make:test GetPosTest —unit vim tests/Unit/GetPosTest.php <?php namespace Tests \ Unit ; use App \ Services ; use Tests \ TestCase ; use Illuminate \ Foundation \ Testing \ WithFaker ; use Illuminate \ Foundation \ Testing \ RefreshDatabase ; class GetPosTest extends TestCase { private static $empty_array = [ ] ; private static $one_item_array = [ [ 'posx' = > 327 , 'poxy' = > 444 ] ] ; private static $more_items_array_1 = [ [ 'posx' = > 82 , 'poxy' = > 444 ] , [ 'posx' = > 327 , 'poxy' = > 444 ] , [ 'posx' = > 230 , 'poxy' = > 622 ] , ] ; private static