PHP missing extension ext-dom

When doing composer install you may get phpunit/phpunit 4.8.26 requires ext-dom * -> the requested PHP extension dom is missing from your system.. This is caused by the php-xml extension missing. On Ubuntu, you just need to do sudo apt-get install php-xml or, if you're using PHP 7 sudo apt-get install php7.0-xml.

Problem solved.