If you want to do spec BDD in PHP phpspec is your guy. These are the slides I've used for an internal presentation of the tool @ ideato.
This was part of a regular series called "ideato pills"
18. Let’s go see the
prophet
https://github.com/phpspec/prophecy
19. Prophet
Prophecy is a highly opinionated yet very
powerful and flexible PHP object mocking
framework. Though initially it was created to fulfil
phpspec2 needs, it is flexible enough to be used
inside any testing framework out there with
minimal effort.
Use it !