I was working on redirect steps and found a command set to upgrade my behat environment.
You can check first what you currently have:
pear list -c behat
And then compare to the following:
sudo pear channel-discover pear.behat.org pear remote-list -c behat sudo pear channel-update pear.behat.org sudo pear upgrade behat/behat sudo pear upgrade behat/gherkin sudo pear upgrade behat/mink
Sharing so you don’t have to look or spend time on this and keep to the current bleeding edge.