PHP code example of creativesoftworks / behat-wiremock-context-extension
1. Go to this page and download the library: Download creativesoftworks/behat-wiremock-context-extension library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
creativesoftworks / behat-wiremock-context-extension example snippets
class FeatureContext implements WiremockContextAware
{
/**
* @return \CreativeSoftworks\BehatWiremockContextExtension\WiremockContext
*/
public function getWiremockContext()
{
return $this->getSubcontext('WiremockContext');
}
/**
* @param \CreativeSoftworks\BehatWiremockContextExtension\WiremockContext $wiremockContext
*/
public function setWiremockContext(WiremockContext $wiremockContext)
{
$this->useContext('WiremockContext', $wiremockContext);
}
}