Let's take our example below. Read over the code, and see if you can understand what is going on:
Have you figured it out yet?
Well, I hope so. It's written in plain english. Stephen King novels should be scary, in our system scary is determined by the getHorrorRating method, with a max rating of 5. We are testing here that Stephen King novels have a horror rating of 5, which should be the case.
This is such a simple example of BDD, but you can do much more with it. Imagine expanding this to your WordPress plugin or theme development. How would you incorporate BDD into your testing suite?