Adding custom step stubs to your FeatureContext file automatically

I recently started using Behat for User Acceptance Testing with some of my client projects, and just ran across a very extremely useful snippet in the Behat Documentation, for automatically adding the Behat generated method stubs for custom steps to your FeatureContext class file.

You can run Behat at the command line with the "--dry-run" option to test your step definitions to see if there are any undefined steps or syntax errors in your .feature files. By adding the "--append-snippets" option, Behat will automatically insert its auto-generated method stub into the FeatureContext.php file that is present in your "/features" directory.

Very Cool!