Setup up Behat on a new PHP project

Submitted by piofernandes on Thu, 01/31/2019 - 10:31

In order to take advantage of Behaviour Driven Development, I am installing Behat. This always for test coverage when integrating new features on the project, detecting regression errors automatically, before any deployment phase.

 

First of all, I create [project_root]/tests folder and inside, I add a "composer.json" file with the following content: