Subject: [bug#67902] [PATCH v4 29/98] gnu: Add php-phpunit-php-timer.

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

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

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

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 15f30a3877..4544a0904c 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -756,3 +756,26 @@ (define-public php-phpunit-php-invoker
     (home-page "https://github.com/sebastianbergmann/php-invoker/")
     (license license:bsd-3)))
 
+(define-public php-phpunit-php-timer
+  (package
+    (name "php-phpunit-php-timer")
+    (version "5.0.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sebastianbergmann/php-timer")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0y3wc4ywmpzbjkgnyf8aq2k2kybfmbic2qz46wrqr8d78ah2csf0"))))
+    (build-system composer-build-system)
+    (native-inputs
+     (list php-phpunit-phpunit
+           php-sebastian-global-state))
+    (synopsis "Utility class for timing")
+    (description "This package contains a stand-alone component originally part
+of PHPUnit.  It provides a utility class for timing.")
+    (home-page "https://github.com/sebastianbergmann/php-timer/")
+    (license license:bsd-3)))
+
-- 
2.46.0