I am trying to get Cucumber working to test a PHP application. So far I am able to get the feature to run by simplying running cucumber
in my features directory. At the bottom of the results, it says:
If you want snippets in a different programming language, just make sure a file with the appropriate file extension exists where cucumber looks for step definitions.
What does this mean exactly? I'm fine with writing most of my step definitions in Ruby, but at some point, I'm going to need to create some setup data (ideally creating it in PHP). How can I write step definitions in PHP as this statement suggests?
FYI: I am new to Ruby and Cucumber as well.
Update: I am under the impression that I am only able to test PHP applications with Selenium (actual browser). If I am able to test with simulated browsers, or headless browsers, please correct me.