The idea is that you you send a request to the server, you can do that using Guzzle ;)
For an example take a look at this: http://erikaybar.name/building-and-testing-a-restful-api-using-behat-phpunit-and-laravel-part-1/
I've been trying to set up Behat to work with a Laravel 5 project my team is working on. The reason we've decided to go with Behat over something more traditional like PHPUnit or PHPSpec is because the Gherkin syntax is something that our product team can write for us and can be directly posted in our project management tool.
While the Laravel-specific extension for Mink works great, it's obviously intended more for testing an entire interface rather than REST calls. Does anyone have any advice for setting up Laravel 5 to work with, say, the Behat WebApiExtension? While still providing support for stubs and mocking?
Thanks!
Please or to participate in this conversation.