From patchwork Sun Jul 12 22:25:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Lepiller X-Patchwork-Id: 23214 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B6BEF27BBE3; Sun, 12 Jul 2020 23:36:46 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7ABC327BBE1 for ; Sun, 12 Jul 2020 23:36:46 +0100 (BST) Received: from localhost ([::1]:43844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jukaU-00007W-2w for patchwork@mira.cbaines.net; Sun, 12 Jul 2020 18:36:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jukZr-0007qL-Q3 for guix-patches@gnu.org; Sun, 12 Jul 2020 18:36:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jukZo-000748-Sk for guix-patches@gnu.org; Sun, 12 Jul 2020 18:36:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jukZo-0003zh-QQ for guix-patches@gnu.org; Sun, 12 Jul 2020 18:36:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42338] [PATCH 34/34] gnu: Add phpunit. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Jul 2020 22:36:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42338 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42338@debbugs.gnu.org Received: via spool by 42338-submit@debbugs.gnu.org id=B42338.159459335415281 (code B ref 42338); Sun, 12 Jul 2020 22:36:04 +0000 Received: (at 42338) by debbugs.gnu.org; 12 Jul 2020 22:35:54 +0000 Received: from localhost ([127.0.0.1]:47088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jukZe-0003yJ-2u for submit@debbugs.gnu.org; Sun, 12 Jul 2020 18:35:54 -0400 Received: from lepiller.eu ([89.234.186.109]:42900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jukQ9-0003ad-ML for 42338@debbugs.gnu.org; Sun, 12 Jul 2020 18:26:06 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 7f0639ec for <42338@debbugs.gnu.org>; Sun, 12 Jul 2020 22:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=dkim; bh=s8ceYJ2fUGQUNnwEIyVAP3M5k cIbLCI4fmiN6V4oBkY=; b=DDuA4HTM8Ncr6MXCIvixesAm7OgRJwt6AUwclNwKE IO9UCFuIn4woQ7/HuPAo10ycCrn+shktc/WTnf/4fcETV/ae1vwZ5eOi0fGEZ6bJ oV8RKC/c0iPZrRaNfgiDQDF70JvjqmNf98JWN/yW0oDCZPXV/4yq/dRFR//iGI+h nsoWFZ7ycOkEyD6Z4ro35IeoAvWwFqFHfSaOWkxXrrb0mSaysBnpwu4nfGp+zypJ YFuAulYu7d4soWh/bRS3FAXJ6a8leREAT6+UIW8Wqz/dClCWE9hIUfkUqc2tYxFp Z8XNOG7tBWh+UNLpnylkXIbUzM64nKB5IJSlADnwUUNTw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 4170c07a (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <42338@debbugs.gnu.org>; Sun, 12 Jul 2020 22:26:03 +0000 (UTC) From: Julien Lepiller Date: Mon, 13 Jul 2020 00:25:38 +0200 Message-Id: <20200712222538.18092-34-julien@lepiller.eu> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200712222538.18092-1-julien@lepiller.eu> References: <20200713002055.1553f136@tachikoma.lepiller.eu> <20200712222538.18092-1-julien@lepiller.eu> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/php-xyz.scm (php-phpunit-phpunit): New variable. --- gnu/packages/php-xyz.scm | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm index 0ae92c4600..eebf64c1a3 100644 --- a/gnu/packages/php-xyz.scm +++ b/gnu/packages/php-xyz.scm @@ -791,3 +791,48 @@ timeout.") represent the PHP code units.") (home-page "https://github.com/sebastianbergmann/code-unit") (license license:bsd-3))) + +(define-public php-phpunit-phpunit + (package + (name "phpunit") + (version "9.2.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sebastianbergmann/phpunit.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ck41faxkqr6painsqirklzsl08k8biadi2ksnpsmpjf3dp5p5gl")))) + (build-system composer-build-system) + (arguments + ;; Requires phpspec/prophecy-phpunit, which in turns requires phpunit. + `(#:tests? #f)) + (inputs + `(("php-sebastian-version" ,php-sebastian-version) + ("php-sebastian-type" ,php-sebastian-type) + ("php-sebastian-resource-operations" ,php-sebastian-resource-operations) + ("php-sebastian-object-enumerator" ,php-sebastian-object-enumerator) + ("php-sebastian-global-state" ,php-sebastian-global-state) + ("php-sebastian-exporter" ,php-sebastian-exporter) + ("php-sebastian-environment" ,php-sebastian-environment) + ("php-sebastian-diff" ,php-sebastian-diff) + ("php-sebastian-comparator" ,php-sebastian-comparator) + ("php-sebastian-code-unit" ,php-sebastian-code-unit) + ("php-phpunit-php-timer" ,php-phpunit-php-timer) + ("php-phpunit-php-text-template" ,php-phpunit-php-text-template) + ("php-phpunit-php-invoker" ,php-phpunit-php-invoker) + ("php-phpunit-php-file-iterator" ,php-phpunit-php-file-iterator) + ("php-phpunit-php-code-coverage" ,php-phpunit-php-code-coverage) + ("php-phpspec-prophecy" ,php-phpspec-prophecy) + ("php-phar-io-version" ,php-phar-io-version) + ("php-phar-io-manifest" ,php-phar-io-manifest) + ("php-myclabs-deep-copy" ,php-myclabs-deep-copy) + ("php-doctrine-instantiator" ,php-doctrine-instantiator))) + (properties `((upstream-name . "phpunit/phpunit"))) + (synopsis "PHP Unit Testing framework") + (description "PHPUnit is a testing framework for PHP. It is an instance of +the xUnit architecture for unit testing frameworks.") + (home-page "https://phpunit.de/") + (license license:bsd-3)))