I've just read that I can use tokens in the format of :argument in my context method Given annotations, however when I do this it's telling me the step is undefined...
/**
* @Given I am logged in as :username
*/
public function iAmLoggedInAs( $username )
{
// ...
}
This returns Undefined step "I am logged in as 'disco-superuser'"
, however ...
/**
* @Given /^I am logged in as "([^"]*)"$/
*/
public function iAmLoggedInAs( $username )
{
// ...
}
... works fine.
What am I missing here.
Behat version: 2.5.3