diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index bd84f5caeb..306e18a09b 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -15,6 +15,7 @@ use Behat\Behat\Hook\Scope\BeforeScenarioScope; use Behat\Gherkin\Node\TableNode; use Behat\Hook\AfterScenario; use Behat\Hook\BeforeScenario; +use Behat\Hook\BeforeSuite; use Behat\Step\Given; use Behat\Step\Then; use Behat\Step\When; @@ -208,6 +209,11 @@ class FeatureContext implements Context, SnippetAcceptingContext { } } + #[BeforeSuite] + public static function createPHPUnitConfiguration(): void { + (new \PHPUnit\TextUI\Configuration\Builder())->build([]); + } + #[BeforeScenario] public function setUp(BeforeScenarioScope $scope): void { self::$currentScenario = $scope->getFeature()->getTitle() . ':' . $scope->getScenario()->getLine() . ' - ' . $scope->getScenario()->getTitle();