Vi Veri Veniversum Vivus Vici
If you get this error:

  1. $ phpunit -c config.xml SomeTest.php
  2. PHP Warning: require_once(PHP/Timer/Autoload.php): failed to open stream: No such file or directory in /usr/share/php/PHPUnit/Autoload.php on line 47
  3. Warning: require_once(PHP/Timer/Autoload.php): failed to open stream: No such file or directory in /usr/share/php/PHPUnit/Autoload.php on line 47
  4. PHP Fatal error: require_once(): Failed opening required 'PHP/Timer/Autoload.php' (include_path='.:/usr/share/php') in /usr/share/php/PHPUnit/Autoload.php on line 47
  5. Fatal error: require_once(): Failed opening required 'PHP/Timer/Autoload.php' (include_path='.:/usr/share/php') in /usr/share/php/PHPUnit/Autoload.php on line 47


Do this command:

  1. $ sudo pear install --alldeps --force phpunit/PHP_Timer
  2. [sudo] password for user:
  3. downloading PHP_Timer-1.0.5.tgz ...
  4. Starting to download PHP_Timer-1.0.5.tgz (3,597 bytes)
  5. ....done: 3,597 bytes
  6. install ok: channel://pear.phpunit.de/PHP_Timer-1.0.5


Now all will be OK

@темы: pear, PHPUnit, PHP