Testing APIs written in PHP using the Behat feature testing tool

Manually testing your own API endpoints using PostMan or an equivalent tool takes a lot of time. Testing them through unit tests will only test a part of our application, and often skips network and framework configuration.

Using Behat, we can write tests in Gherkin and execute these on an actual webserver and database.

After attending this talk, I hope that attendees will be able to:
– Implement Behat into their own projects.
– Write functional tests in Gherkin.
– Setup state for these tests.
– Verify test results from response bodies and database state.


Session info:

Speaker: Timo Bakx

Backend developer, building API's in Symfony at Linku

Date: 15 maart 2024

Time: 09:50 - 10:35

Relevant tags:

See all speakers

See all videos