{ lib, fetchFromGitHub, nix-update-script, php, phpunit, testers, versionCheckHook, }: php.buildComposerProject2 (finalAttrs: { pname = "phpunit"; version = "12.2.7"; src = fetchFromGitHub { owner = "sebastianbergmann"; repo = "phpunit"; tag = finalAttrs.version; hash = "sha256-pSmxvDGsD2NFKwP0tA8LTBxfZEXDJFwLACdmK//6Ks8="; }; vendorHash = "sha256-py1mJRNb8Wcsw9sq0sGZc7lHzi52Ui4HmTUeAvTaXwY="; passthru = { updateScript = nix-update-script { }; tests.version = testers.testVersion { package = phpunit; }; }; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version"; meta = { changelog = "https://github.com/sebastianbergmann/phpunit/blob/${finalAttrs.version}/ChangeLog-${lib.versions.majorMinor finalAttrs.version}.md"; description = "PHP Unit Testing framework"; homepage = "https://phpunit.de"; license = lib.licenses.bsd3; mainProgram = "phpunit"; maintainers = with lib.maintainers; [ onny ]; teams = [ lib.teams.php ]; }; })