Tool

Behat

BDD in PHP: Gherkin scenarios that a product owner can read, wired to Mink or Symfony.

Behat’s particularity is the language of the scenario: Given / When / Then in business words. The PHP context maps those sentences to clicks, HTTP or domain calls. That is not “tests in English”; it is a living specification.

Strength: the paths that matter (checkout, publish, permission denied) stay documented. Weakness: slow, brittle if they poke at CSS. A senior keeps a thin suite of Behat and a thick suite of PHPUnit.

On Symfony, the Symfony2Extension boots the kernel. On Ibexa, contexts wrap the repository. Same idea: behaviour first.

docs.behat.org

Related