per php-version phpunit

This commit is contained in:
Robin Appelman 2025-10-26 01:16:47 +02:00
commit 3afda04092
2 changed files with 27 additions and 15 deletions

View file

@ -1,12 +1,18 @@
{
phpunit,
callPackage,
php,
majorVersion,
testDependencies,
writeShellApplication,
}:
writeShellApplication {
name = "phpunit";
runtimeInputs = [phpunit] ++ testDependencies;
text = ''
phpunit "$@"
'';
}
}: let
unwrapped = callPackage ../pkgs/phpunit.nix {
inherit php majorVersion;
};
in
writeShellApplication {
name = "phpunit";
runtimeInputs = [unwrapped] ++ testDependencies;
text = ''
phpunit "$@"
'';
}