I am getting a "Permission denied" error when executing phpunit as my normal user. It looks like changing permissions of the /usr/share/webapps/bin
dir could solve the issue, but I am not sure if that is a good idea. Or maybe I am missing some configuration?
$ phpunit --bootstrap tests/bootstrap.php tests/Test.php
PHPUnit 9.5.2 by Sebastian Bergmann and contributors.
... 3 / 3 (100%)PHP Warning: file_put_contents(/usr/share/webapps/bin/.phpunit.result.cache): Failed to open stream: Permission denied in phar:///usr/share/webapps/bin/phpunit.phar/phpunit/Runner/DefaultTestResultCache.php on line 101
Time: 00:00, Memory: 18.00 MB
OK (3 tests, 3 assertions)
Pinned Comments
aragon123 commented on 2023-02-25 20:50 (UTC)
This package is now build from the phpunit source. If you want to use the prebuilt phar file, which is released use the binary package: https://aur.archlinux.org/packages/phpunit-bin