Skip to content

Commit 82577dc

Browse files
Merge pull request #16564 from nextcloud/fix-phpunit-11-use-in-behat
test: Fix PHPUnit 11 use in Behat
2 parents c0cce32 + a0f58ae commit 82577dc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/integration/features/bootstrap/FeatureContext.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Behat\Gherkin\Node\TableNode;
1616
use Behat\Hook\AfterScenario;
1717
use Behat\Hook\BeforeScenario;
18+
use Behat\Hook\BeforeSuite;
1819
use Behat\Step\Given;
1920
use Behat\Step\Then;
2021
use Behat\Step\When;
@@ -208,6 +209,11 @@ public function __construct() {
208209
}
209210
}
210211

212+
#[BeforeSuite]
213+
public static function createPHPUnitConfiguration(): void {
214+
(new \PHPUnit\TextUI\Configuration\Builder())->build([]);
215+
}
216+
211217
#[BeforeScenario]
212218
public function setUp(BeforeScenarioScope $scope): void {
213219
self::$currentScenario = $scope->getFeature()->getTitle() . ':' . $scope->getScenario()->getLine() . ' - ' . $scope->getScenario()->getTitle();

0 commit comments

Comments
 (0)