phpunit can be run using Travis variable $TRAVIS_BUILD_DIR/vendor/bin/phpunit .