Problem with phpunit-skelgen permissions

Hi, I got an error when I try to generate a Unit PHP unit test for a class:

/usr/bin/X11/phpunit-skelgen --test -- Persona /home/dennis/public_html/phpunit.test/Persona.php PersonaTest /home/dennis/public_html/phpunit.test/PersonaTest.php
PHP Warning:  require(/usr/share/php/PHPUnit/SkeletonGenerator/Autoload.php): failed to open stream: Permission denied in /usr/bin/phpunit-skelgen on line 41
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit-skelgen:0
PHP Fatal error:  require(): Failed opening required '/usr/share/php/PHPUnit/SkeletonGenerator/Autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/bin/phpunit-skelgen on line 41
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit-skelgen:0

Process finished with exit code 255


Apparently phpunit-skelgen get me a problem of 'permission denied'.

How I solve this? Help!

Please sign in to leave a comment.