From 19c9d889709bb78badd0e715df3247ac17a3fecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Mon, 8 Dec 2025 16:21:30 +0100 Subject: [PATCH] test: Fix PHPUnit 11 use in Behat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Starting with PHPUnit 11.3, some complex outputs of certain asserts (like "assertStringContainsString") require the output of PHPUnit to be explicitly setup. Otherwise when the assert fails a type error is thrown (although it does not seem to affect asserts with simpler outputs, like "assertEquals"). Signed-off-by: Daniel Calviño Sánchez --- build/integration/features/bootstrap/BasicStructure.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php index e6ba54a7212..2edfca5b0cf 100644 --- a/build/integration/features/bootstrap/BasicStructure.php +++ b/build/integration/features/bootstrap/BasicStructure.php @@ -475,6 +475,13 @@ trait BasicStructure { sleep((int)$seconds); } + /** + * @BeforeSuite + */ + public static function createPHPUnitConfiguration(): void { + (new \PHPUnit\TextUI\Configuration\Builder())->build([]); + } + /** * @BeforeSuite */