mirror of
https://codeberg.org/icewind/flakelight-php.git
synced 2026-06-03 18:04:10 +02:00
phpunit app
This commit is contained in:
parent
a59a517f66
commit
d143b04ec3
4 changed files with 84 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue