Skip to content

Commit ba22d25

Browse files
committed
test: Fix PHPUnit 11 use in Behat
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 <[email protected]>
1 parent bbca4fe commit ba22d25

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build/integration/features/bootstrap/BasicStructure.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,13 @@ public function sleepForSeconds($seconds) {
475475
sleep((int)$seconds);
476476
}
477477

478+
/**
479+
* @BeforeSuite
480+
*/
481+
public static function createPHPUnitConfiguration() {
482+
(new \PHPUnit\TextUI\Configuration\Builder())->build([]);
483+
}
484+
478485
/**
479486
* @BeforeSuite
480487
*/

0 commit comments

Comments
 (0)