From 3661b1fa33e91a9798ec2a2a4755aae5ffb68356 Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Mon, 26 May 2025 11:19:29 +0100 Subject: [PATCH] Declare dependency on bcmath extension These tests fail if the 'bcmath' PHP extension is not loaded. Elsewhere, we use this syntax to skip tests which depend on the 'bcmath' extension. --- .../Core/Ruleset/ProcessRulesetShouldProcessElementTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Core/Ruleset/ProcessRulesetShouldProcessElementTest.php b/tests/Core/Ruleset/ProcessRulesetShouldProcessElementTest.php index 1f0780c44b..59fce1b198 100644 --- a/tests/Core/Ruleset/ProcessRulesetShouldProcessElementTest.php +++ b/tests/Core/Ruleset/ProcessRulesetShouldProcessElementTest.php @@ -215,6 +215,8 @@ public function testShouldProcessArgCbfonly() * Verify that in CS mode, phpcs-only directives are respected and phpcbf-only * directives are ignored. * + * @requires extension bcmath + * * @return void */ public function testShouldProcessIniCsonly() @@ -234,7 +236,8 @@ public function testShouldProcessIniCsonly() * Verify that in CBF mode, phpcbf-only directives are respected and phpcs-only * directives are ignored. * - * @group CBF + * @group CBF + * @requires extension bcmath * * @return void */