Cucumber: How to write snippets/step definitions in PHP?

djukoff82

New Member
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 \[code\]cucumber\[/code\] in my features directory. At the bottom of the results, it says:\[quote\] 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.\[/quote\]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.Solution: Cuke4PHPCuke4PHP implements the Cucumber wire protocol, making it possible to write step definitions in PHP.
 
Back
Top