I'm a long time Windows user and how I usually do this in Windows is to edit the environment path and add the file path to the command that I want to use. Like when I want to use PHPUnit I just add this path to the environment variables:
tools/phpunit/vendor/bin/phpunit
And then I can just use phpunit file_test.php
to run my tests. How do I do that in Ubuntu?