Subject: [bug#67902] [PATCH v5 21/54] gnu: Add php-phpspec-prophecy.

From: Nicolas Graves <[email-masked]>
Date: Fri, 18 Oct 2024 01:05:44 +0200

* gnu/packages/php-bootstrap.scm (php-phpspec-prophecy): New variable.
---
 gnu/packages/php-bootstrap.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/php-bootstrap.scm b/gnu/packages/php-bootstrap.scm
index 96fa8593ce..bb687c25bc 100644
--- a/gnu/packages/php-bootstrap.scm
+++ b/gnu/packages/php-bootstrap.scm
@@ -516,3 +516,30 @@ (define-public php-phpdocumentor-type-resolver
 types and structural element names.")
     (home-page "http://www.phpdoc.org")
     (license license:expat)))
+
+(define-public php-phpspec-prophecy
+  (package
+    (name "php-phpspec-prophecy")
+    (version "1.17.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/phpspec/prophecy")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1hl6n7y0f68hlsw174izqjph2y7f195dggr4n8sfzffw3iqya0w5"))))
+    (build-system composer-build-system)
+    (inputs
+     (list php-sebastian-recursion-context
+           php-doctrine-instantiator
+           php-sebastian-comparator
+           php-phpdocumentor-reflection-docblock))
+    (native-inputs
+     (list php-phpunit-phpunit))
+    (synopsis "Mocking framework for PHP 5.3+")
+    (description "This package contains a mocking framework for testing PHP
+5.3+ projects.")
+    (home-page "https://github.com/phpspec/prophecy")
+    (license license:expat)))
-- 
2.46.0