-
Notifications
You must be signed in to change notification settings - Fork 18
Provide a way to configure the Goutte driver #58
Comments
Does MinkGoutteDriver support it? |
@elnur I can't do it here if MinkGoutteDriver does not support this configuration |
@66Ton99 MinkGoutteDriver accepts a Goutte client in its constructor, so you can configure it the way you want |
That's the way I'm doing it now. I subclass parameters:
mink.goutte.class: Acme\Goutte\Client But it would be nice to have a configuration option for such a common use case. Mink extension for Behat supports it, but Mink itself doesn't. That's another example of the Behat/Mink confusion. |
@elnur Mink itself supports configuring goutte (otherwise MinkExtension could not support it). The issue is only in MinkBundle. |
@stof For me the whole point of using the Mink bundle is to integrate with the Symfony DIC. I don't see a way to do that with PHPUnit-Mink — at least not an obvious one. |
but the point is that there is no valid reason to use Mink in your DIC. It is not meant to be used inside your app. It is meant to be used in your testsuite to test your app |
How am I supposed to populate test data in the database and assert it after |
Hmm. I guess I could do it by extending |
yeah, the issue is that PHPUnit does not allow using several extensions at the same time, given that the common way to write a phpunit extension is to provide a base testcase class. |
Seems like I need to extend |
Right now, it's not possible to configure Goutte/Guzzle/cURL to ignore SSL errors.
The text was updated successfully, but these errors were encountered: