Subject: [PATCH v4 26/98] gnu: Add php-phpunit-php-code-coverage.

From: Nicolas Graves <[email-masked]>
Date: Mon, 7 Oct 2024 23:43:54 +0200

* gnu/packages/php-xyz.scm (php-phpunit-php-code-coverage): New variable.

Change-Id: I2a11ef7bbee5c3448461bd19fa54bfb4f4572126
---
 gnu/packages/php-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 7f48a9cf67..53af6a8d7f 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -679,3 +679,36 @@ (define-public php-phpstan-phpdoc-parser
     (home-page "https://github.com/phpstan/phpdoc-parser")
     (license license:expat)))
 
+(define-public php-phpunit-php-code-coverage
+  (package
+    (name "php-phpunit-php-code-coverage")
+    (version "9.2.29")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sebastianbergmann/php-code-coverage")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "16hza9xf1x1rixym4rwhffipwbl3r1jq2hi1r1d1c5fpsdcpg31p"))))
+    (build-system composer-build-system)
+    (inputs
+     (list php-nikic-php-parser
+           php-sebastian-complexity
+           php-sebastian-lines-of-code
+           php-sebastian-version
+           php-sebastian-environment
+           php-sebastian-code-unit-reverse-lookup
+           php-theseer-tokenizer
+           php-phpunit-php-text-template
+           php-phpunit-php-token-stream
+           php-phpunit-php-file-iterator))
+    (native-inputs
+     (list php-phpunit-phpunit))
+    (synopsis "Code coverage information library")
+    (description "This package is a library that provides collection,
+processing, and rendering functionality for PHP code coverage information.")
+    (home-page "https://github.com/sebastianbergmann/php-code-coverage")
+    (license license:bsd-3)))
+
-- 
2.46.0