Codeception – the BDD style testing framework

I would like to introduce another PHP testing framework that has an easier learning curve and some unique features to create unit, functional, and acceptance tests.

In Codeception—unlike Behat—we don't need to write the scenarios in another language (Gherkin) and all the steps of test scenarios will be written in PHP. This is one of the main reasons for debates on the Behat versus Codeception topic. If you search for it on Google, you will find that there is a war going on out there. I have used and will use both of them in my personal projects. I won't compare and recommend one over another. They both have their own strengths and weaknesses, and it is totally up to you to decide which one you are comfortable ...

Get Mastering Symfony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.