I have a Behat.yml
default :
context :
parameters :
user: xyz
password : abc
Also i have a file called FeatureContext.php which retrieves the values from behat.yml through
public function iExample($user, $password)
{
$userName=$this->getParameter($user);
}
But it throws an error like
"Call to undefined method FeatureContext::getParameter()"
Am i missing something ? .. i have also added autoload.php in FeatureContext.php through
require_once __DIR__.'/../../vendor/autoload.php';
Please let know , if you have any idea why it is happening ?