Feature: Autodiscovering bootstrap file Background: Given a working Symfony application with SymfonyExtension configured And a Behat configuration containing: """ default: suites: default: contexts: - App\Tests\SomeContext """ And a context file "tests/SomeContext.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" """ Scenario: Autodiscovering bootstrap file in Symfony 4 directory structure application Given a boostrap file "config/bootstrap.php" containing: """