Feature: Loading configured bootstrap file Scenario: Loading configured bootstrap file Given a working Symfony application with SymfonyExtension configured And a Behat configuration containing: """ default: extensions: FriendsOfBehat\SymfonyExtension: bootstrap: custom/bootstrap.php suites: default: contexts: - App\Tests\SomeContext """ And a boostrap file "custom/bootstrap.php" containing: """ parameter = $parameter; } /** @Then the passed parameter should be :expected */ public function parameterShouldBe(string $expected): void { assert($this->parameter === $expected); } } """ And a YAML services file containing: """ services: App\Tests\SomeContext: public: true arguments: - "%env(CUSTOM_VARIABLE)%" """ And a feature file containing: """ Feature: Scenario: Then the passed parameter should be "lol2" """ When I run Behat Then it should pass