Created
October 29, 2012 02:41
-
-
Save MugeSo/3971150 to your computer and use it in GitHub Desktop.
How to use "Diggin - Guzzle AutoCharsetEncoding plugin" with Behat MinkExtension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Behat\MinkExtension\Context\MinkContext; | |
use Diggin\Bridge\Guzzle\AutoCharsetEncodingPlugin\AutoCharsetEncodingPlugin; | |
class FeatureContext extends MinkContext | |
{ | |
/* ommitted */ | |
/** | |
* @BeforeScenario | |
*/ | |
public function onBeforeScenario() | |
{ | |
$autoCharsetEncodingPlugin = new AutoCharsetEncodingPlugin; | |
$this->getSession()->getDriver()->getClient()->getClient()->getEventDispatcher()->addSubscriber($autoCharsetEncodingPlugin); | |
} | |
/* ommitted */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment