Failed opening required 'File/Iterator/Autoload.php' (include_path='.:/usr/share/php') in /usr/share/php/PHPUnit/Autoload.php

Решение:

sudo pear upgrade PEAR
sudo pear config-set auto_discover 1
sudo pear install --alldeps pear.phpunit.de/PHPUnit