Phpunit exits with code 2

Hi! Super newbie to travis here. This is my .travis.yml config, and I really just want to execute some self-written test scripts every time I push changes to my repository:

language: php
php:
  - '7.0'
install:
  - composer install

But when building for some reason travis already executes the command “phpunit”, probably because it is mentioned as the default build script? This command however results in the man page being displayed in the log and exits with code 2 resulting in a failed build. How do I prevent “phpunit” from being sent to the console and instead run a php file?

I think I did it by adding this line:

script: php my_test_file.php