Run the following commands in order:
apt-get update
apt-get install curl
apt-get install subversion
wget -O phpunit https://phar.phpunit.de/phpunit-7.phar
chmod +x phpunit
mv phpunit /usr/local/bin/phpunit
curl -s https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer