Sheffield PHP Talk

Last night I spoke at the new Sheffield PHP meetup.  Reunited after a four-year hiatus, the meetup took place at Couch in Sheffield, and was hosted by the Sheffield PHP agency Evoluted.  They hired the venue outright, and provided a bar tab.

Driving Design with Behat at Sheffield PHP
Driving Design with Behat at Sheffield PHP (📷 https://twitter.com/SheffieldPHP)

Continue reading “Sheffield PHP Talk”

Writing Good BDD Scenarios

Behat and other behavioural testing tools take, as their input, a feature file with scenarios.  These scenarios, in the Gherkin format, allow for a (non-technical) human-readable expression of the requirements of a feature.  The way we write Behat scenarios has come a long way in the seven year history of the tool, so here is a brief look at how we used to write Gherkin scenarios, how they are written now, and what the advantages are of a more modern approach. Continue reading “Writing Good BDD Scenarios”

Behat as a Design Tool

Behat is a behavioural testing suite for PHP.  With its Cucumber-style scenarios and PHP step definitions, it is perfect for applying test automation to Behaviour Driven Development.  But with changes in the past few years in the way it is typically used, it is becoming an important tool for software design, and driving the structure of the domain.

Continue reading “Behat as a Design Tool”