Package Details: phpunit 9.5.21-1

Git Clone URL: https://aur.archlinux.org/phpunit.git (read-only, click to copy)
Package Base: phpunit
Description: PHPUnit is a programmer-oriented testing framework for PHP.
Upstream URL: https://phpunit.de
Licenses: BSD
Submitter: r1pp3rj4ck
Maintainer: aragon123
Last Packager: aragon123
Votes: 51
Popularity: 0.033860
First Submitted: 2014-02-20 19:28 (UTC)
Last Updated: 2022-07-13 16:45 (UTC)

Pinned Comments

aragon123 commented on 2020-12-07 15:53 (UTC)

If you have problems importing the gpg key, try:

gpg --keyserver pgp.uni-mainz.de --recv-keys 4AA394086372C20A

For more information refer to the phpunit documentation: https://phpunit.readthedocs.io/en/latest/installation.html#verifying-phpunit-phar-releases

Latest Comments

aragon123 commented on 2021-04-19 09:48 (UTC)

@jaudriga, you should probably specify a different directory of the result cache: https://phpunit.readthedocs.io/en/9.5/configuration.html#the-cacheresultfile-attribute

Maybe you can also work with some environment variables: https://github.com/sebastianbergmann/phpunit/blob/master/src/Runner/DefaultTestResultCache.php#L59-L67

If you need anything other I currently do not see any other way to set a default, if you know of something please let me know.

jaudriga commented on 2021-04-19 07:50 (UTC)

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)

aragon123 commented on 2020-12-14 10:43 (UTC)

@the_10: there seems to be a problem with the pgp server, I cannot resolve it at the moment as well, on the webpage I also get a 502 error.

You should be also able to get the gpg key from the webpage of sebastian-bergmann directly using:

gpg --keyserver https://sebastian-bergmann.de/gpg.asc --recv-keys 4AA394086372C20A

the_10 commented on 2020-12-14 10:29 (UTC)

If you have problems importing the gpg key, try:

gpg --keyserver pgp.uni-mainz.de --recv-keys 4AA394086372C20A For more information refer to the phpunit documentation: > https://phpunit.readthedocs.io/en/latest/installation.html#verifying-phpunit-phar-releases

Is this server up and running and public available??

gpg --keyserver pgp.uni-mainz.de --recv-keys 4AA394086372C20A gpg: keyserver receive failed: No keyserver available

aragon123 commented on 2020-12-07 15:53 (UTC)

If you have problems importing the gpg key, try:

gpg --keyserver pgp.uni-mainz.de --recv-keys 4AA394086372C20A

For more information refer to the phpunit documentation: https://phpunit.readthedocs.io/en/latest/installation.html#verifying-phpunit-phar-releases

aragon123 commented on 2020-10-31 11:13 (UTC)

So I created a pull request in the linked Github repository, to address this license file issues: https://github.com/sanduhrs/arch-aur-phpunit/pull/1

For completeness I will also leave a reference here.

@sanduhrs if you have not enough time, I would also be happy to take over maintenance of this package.

strubbl commented on 2020-10-08 21:36 (UTC)

the problems with the LICENSE file persists. please see also yan12125's comment

madjoe commented on 2020-10-07 20:49 (UTC)

Unable to update it in my Manjaro using pamac: ==> Validating source files with sha512sums... phpunit-9.2.2.phar ... Passed LICENSE ... FAILED ==> ERROR: One or more files did not pass the validity check! error downloading sources: phpunit

yan12125 commented on 2020-01-02 06:24 (UTC)

Use the name LICENSE for a downloaded file does not match best practices for PKGBUILD [1]. In some sense this PKGBUILD is broken.

[1] https://wiki.archlinux.org/index.php/PKGBUILD#Sources

waschtl commented on 2019-09-18 21:21 (UTC)

Would you consider downloading the LICENSE file as LICENSE-$pkgver?

Otherwise makepkg will not download the new version, and manual intervention is necessary.

the_10 commented on 2018-02-08 16:21 (UTC)

@sanduhrs that helped, just wonder if the file is not downloaded when it changed...

sanduhrs commented on 2018-02-06 15:55 (UTC)

@the_10 The LICENSE file changed, you might have a cached version. Please try clearing pacaur caches.

the_10 commented on 2018-02-06 14:19 (UTC)

latest version fails with pacaur, but still able to update with yaourt

pacaur tells me that LICENSE checksum fails

djmattyg007 commented on 2017-02-19 21:46 (UTC)

Please version the license file: https://github.com/rmarquis/pacaur/issues/657

sanduhrs commented on 2017-02-06 10:15 (UTC)

@eldamar What PHP version are you on?

eldamar commented on 2017-02-06 09:58 (UTC) (edited on 2017-02-06 09:59 (UTC) by eldamar)

I get the following error after installation: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/phar.so' - /usr/lib/php/modules/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0

sanduhrs commented on 2017-01-24 08:52 (UTC)

Fixed the LICENSE checksum, thx!

jamesan commented on 2017-01-24 06:59 (UTC) (edited on 2017-01-24 07:24 (UTC) by jamesan)

The LICENSE file has been changed, so the checksum value no longer validates. Its current SHA512 checksum in the PKGBUILD validates against the previous version, 5.7.5. The latest release updates the copyright notice to add the current year and so changes the checksum to the value: a1899db182b9221aca64fd5a8952a56028786f9dbe4db78375d8e59075483b88a58c9cc68124bdaa2ebeb12340490b13cd5732b9e47ae5ed2d12703b6ffead2a

sanduhrs commented on 2015-10-03 08:00 (UTC) (edited on 2016-06-28 06:26 (UTC) by sanduhrs)

This has been regularly and promptly packaged since version 4.7.7 That includes more than 70 releases since then.

hschletz commented on 2015-07-17 11:37 (UTC)

This version (4.7.0) gives a warning when loading a YAML dataset: "The ability to pass file names to the parse method is deprecated since version 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead." Depending on configuration, these warnings can cause perfectly good tests to fail. The problem is already fixed in the latest release (4.7.7, MD5 sum: f7d59a6924b2e3ee35ab70a637451abc). BTW, why are the packaged versions always so out of date? Not keeping up with every release is one thing, but packaging x.y.0 when this is already several versions behind the latest release does not make sense to me.

mmlb commented on 2015-06-12 12:15 (UTC)

Hey @r1pp3rj4ck This has been marked out-of-date since 2015-04-07 can you please update?

r1pp3rj4ck commented on 2015-02-05 14:45 (UTC)

@yan12125 thanks! didn't notice because I still had the old one so the new one was never downloaded :/

yan12125 commented on 2015-02-05 14:32 (UTC)

LICENSE file is updated and thus integrity check fails.

r1pp3rj4ck commented on 2014-11-18 09:17 (UTC)

@mjob thanks :)

commented on 2014-11-18 09:00 (UTC)

Anyone can now contribute here https://github.com/r1pp3rj4ck/aur-pkgs

r1pp3rj4ck commented on 2014-02-20 19:42 (UTC)

In case anyone wants to contribute: https://github.com/r1pp3rj4ck/phpunit-archlinux