Subject: [PATCH v3 47/96] gnu: Add php-sebastian-global-state.

From: Nicolas Graves <[email-masked]>
Date: Mon, 7 Oct 2024 01:59:42 +0200

* gnu/packages/php-xyz.scm (php-sebastian-global-state): New variable.

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

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 0e3800ecd9..09fc22acb3 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -1154,3 +1154,28 @@ (define-public php-sebastian-exporter
     (home-page "https://github.com/sebastianbergmann/exporter")
     (license license:bsd-3)))
 
+(define-public php-sebastian-global-state
+  (package
+    (name "php-sebastian-global-state")
+    (version "5.0.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sebastianbergmann/global-state")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0vchgv62hy58dkz2gqa9h6yv6c8kvygc84kvbsd5h6nhlcwfzygr"))))
+    (build-system composer-build-system)
+    (native-inputs
+     (list php-phpunit-phpunit))
+    (inputs
+     (list php-sebastian-recursion-context php-sebastian-object-reflector))
+    (synopsis "Snapshotting of global state")
+    (description "This package contains a stand-alone component originally part
+of PHPUnit.  It provides support for creating a snapshot of the global state
+of a PHP program.")
+    (home-page "https://github.com/sebastianbergmann/global-state")
+    (license license:bsd-3)))
+
-- 
2.46.0