FriendsOfBehat / SymfonyExtension

:musical_score: Extension integrating Behat with Symfony.
MIT License
472 stars 62 forks source link

Unused binding "$minkParameters" in service "App\Tests\Behat\DemoContext". #63

Closed rlanting closed 5 years ago

rlanting commented 5 years ago

composer create-project symfony/skeleton behattest cd behattest composer require --dev friends-of-behat/symfony-extension:^2.0 vendor/bin/behat

=> Unused binding "$minkParameters" in service "App\Tests\Behat\DemoContext".

Looks like a bind is created when mink is not enabled.

mikemix commented 5 years ago

Same here, cannot run the suite!

To fix the issue temporarily I made sure one of my contexts requires the $minkParameters as a constructor dependency.

pamil commented 5 years ago

It looks like symfony/dependency-injection 4.2.3 introduces this error and 4.2.2 works fine - I'll look more into that.

pamil commented 5 years ago

In fact, we were relying on an unstable and undocumented behaviour of Symfony's DI, will revert it and publish a patch release. See #66 for more details.

pamil commented 5 years ago

Could you update to v2.0.3 and give it one more try? It should be solved.

mikemix commented 5 years ago

Indeed, thanks!

rlanting commented 5 years ago

Verified fixed. Thanks!