diff mbox series

[bug#67902,v3,26/96] gnu: Add php-phpunit-php-code-coverage.

Message ID 20241007000046.25625-26-ngraves@ngraves.fr
State New
Headers show
Series [bug#67902,v3,01/96] gnu: Add abnfgen. | expand

Commit Message

Nicolas Graves Oct. 6, 2024, 11:59 p.m. UTC
* 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 mbox series

Patch

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)))
+