Ok finally solved after hours and hours of attempts.
I had to turn display_errors = On in the php.ini version for php CLI
thank to this I managed to get displayed the error which was
Warning: require_once(PHPUnit/Framework/MockObject/Autoload.php): failed to open stream: No such file or directory in /usr/local/pear/share/pear/PHPUnit/Autoload.php on line 67
So I have installed PHPUnit_MockObject
sudo pear install --force phpunit/PHPUnit_MockObject
all working now