Package Details: phpunit 11.4.0-1

Git Clone URL: https://aur.archlinux.org/phpunit.git (read-only, click to copy)
Package Base: phpunit
Description: A programmer-oriented testing framework for PHP
Upstream URL: https://phpunit.de
Licenses: BSD
Conflicts: phpunit-bin
Submitter: r1pp3rj4ck
Maintainer: aragon123
Last Packager: aragon123
Votes: 51
Popularity: 0.000000
First Submitted: 2014-02-20 19:28 (UTC)
Last Updated: 2024-10-06 15:27 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

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

Latest Comments

1 2 3 4 Next › Last »

aragon123 commented on 2023-04-02 09:39 (UTC)

@gnaggnoyil @xiretza I will look into this, but I cannot promise you anything in the near future.

As an alternative in the near future you could use the binary version of this package: https://aur.archlinux.org/packages/phpunit-bin Which packages the prebuilt phpunit phar file.

xiretza commented on 2023-03-12 17:05 (UTC)

Same issue as @gnaggnoyil, build() fails in a clean chroot. Please find a way to enable iconv during build.

gnaggnoyil commented on 2023-03-07 13:29 (UTC) (edited on 2023-03-07 13:29 (UTC) by gnaggnoyil)

@aragon123 I modified /etc/php/php.ini so that I have iconv extension loaded and phar.readonly set to off; I then ran makepkg and it can be built now. However, the default php.ini configuration file used in clean chroot build does not have the options mentioned above set as mentioned. Did you suggest that I should set php.ini file explicitly in a clean chroot too?

aragon123 commented on 2023-03-03 15:24 (UTC)

@gnaggnoyil make sure that you have the iconv.so extension loaded in your /etc/php/php.ini.

@yan12125 yes I can try, but as the maintainer also did not want to do Github releases, I am not sure if he is willing to add a composer.lock, as this package is mostly used as dependency (I know there is still a debate if in that case a composer.lock should be released as well). Feel free to create an issue in the upstream project :-) Otherwise, when I am willing to discuss, I might create the issue myself in the future, but atm. I have a lot other stuff going on.

gnaggnoyil commented on 2023-03-03 15:03 (UTC)

I met the following error when building this package in a clean chroot:

[php-scoper]  1441/1441 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
     [copy] Copying 1 file to /build/phpunit/src/phpunit/build/tmp/phar-scoped
    [phpab] PHP Fatal error:  Uncaught Error: Call to undefined function iconv_substr() in phar:///build/phpunit/src/phpunit/tools/phpab/vendor/zetacomponents/console-tools/src/input.php:605
    [phpab] Stack trace:
    [phpab] #0 phar:///build/phpunit/src/phpunit/tools/phpab/vendor/zetacomponents/console-tools/src/input.php(538): ezcConsoleInput->processOptions()
    [phpab] #1 phar:///build/phpunit/src/phpunit/tools/phpab/phpab/CLI.php(83): ezcConsoleInput->process()
    [phpab] #2 /build/phpunit/src/phpunit/tools/phpab(155): TheSeer\Autoload\CLI->run()
    [phpab] #3 {main}
    [phpab]   thrown in phar:///build/phpunit/src/phpunit/tools/phpab/vendor/zetacomponents/console-tools/src/input.php on line 605

BUILD FAILED
/build/phpunit/src/phpunit/build.xml:97: The following error occurred while executing this line:
/build/phpunit/src/phpunit/build.xml:338: exec returned: 255

Total time: 11 seconds
==> ERROR: A failure occurred in build().
    Aborting...

Does anyone know what was happening there?

yan12125 commented on 2023-03-01 04:25 (UTC)

Thanks, but maintaining composer.lock on AUR may not be a good idea. Asking upstream to add them is better.

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

aragon123 commented on 2023-02-25 18:22 (UTC)

@yan12125 that is correct, I created the binary version of this package, and will look into this package to be built from source in future (if it is too much work, I will submit a merge request).

yan12125 commented on 2023-02-25 17:09 (UTC)

Probably this package should be called phpunit-bin as well.

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.