phpunit app

This commit is contained in:
Robin Appelman 2025-10-25 23:37:06 +02:00
commit d143b04ec3
4 changed files with 84 additions and 2 deletions

View file

@ -2,7 +2,7 @@
lib,
allVersions,
}: let
inherit (lib) splitString split trim map substring stringToCharacters foldr elemAt filter isString;
inherit (lib) splitString split trim map substring stringToCharacters foldr elemAt filter isString splitVersion head;
inherit (lib.lists) findFirstIndex;
inherit (lib.strings) charToInt compareVersions;
in
@ -49,4 +49,5 @@ in
then composerJson.version
else "0.0.0";
phpVersions = filter matches allVersions;
phpUnitVersion = head (splitVersion composerJson.require-dev."phpunit/phpunit");
}