Back to Vol 19, Issue 5

PHP Architect · Vol 19, Issue 5 · May 2020

The Workshop: Specification BDD with Phpspec

by Joe Ferguson

phpspec is a package which allows us to use Behavior-Driven Development, BDD, which comes from Test-Driven Development, TDD. When applying BDD, we write our tests first and then only enough code to pass our tests and then refactor and verify the tests still pass exactly as we would with TDD. This cycle continues and is often referred to as red-green development of writing tests that fail and enough code to make them pass, then restarting the process.

The full article is in PHP Architect Vol 19, Issue 5. Subscribe to read it and every new issue.

Subscribe
Joe Ferguson

About the author

Joe Ferguson

Joe Ferguson is a PHP developer and community organizer. He is involved with many different technology related initiatives in Memphis including the Memphis PHP User group. He’s been married to his extremely supportive and amazing wife for a really long time and she turned him into a crazy cat man. They live in the Memphis suburbs with their two cats.

Mastodon: https://phpc.social/@joepferguson

Our Partners

Collaborating with industry leaders to bring you the best PHP resources and expertise

Interested in partnering? Get in touch →