I am not quite sure if the question belongs to this forum, so if not and you are about to close this question, please make a suggestion where else to ask this question.
Basically, I need to install phpunit
on Ubuntu 12.04. By doing so with the packet manager I get an error when running phpunit
:
PHP Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/bin/phpunit on line 38
for which there are solutions, i.e. to install phpunit
with pear
.
Following the pear install instructions I download and run go-pear.phar
, which itself produces an error
PHP Notice: Uninitialized string offset: 0 in phar:///home/alexander/opt/src/go-pear.phar/Console/Getopt.php on line 145
Any suggestions how to proceed from here? I also ONLY need phpunit
, so pear
will be used just for this case once.