Improved flexibility of the testing scripts.

For more info, run: tests/phpunit.sh -h