Today I’ll cover testing REST APIs with Behat. I will be using Laravel to build our sample REST API. Also, I will be using guzzle as the REST client. This proves to be a much simpler method of testing the REST API then writing a driver or extending mink.
This is more of an advanced tutorial so I’m going to skip over some of the more basic setup steps or just briefly mention them. If you need additional setup help just ask in the comments.
An example containing all of the code needed can be found on github at behat-rest-testing.