Upgrade to Pro — share decks privately, control downloads, hide ads and more …

BDD With PHPSpec

BDD With PHPSpec

PHPSpec allows us to test our objects in a different way than tools like PHPUnit do. Rather than focussing on testing the implementation of objects we'll test the behavior. In this talk I'll do a live coding session where we'll go over the practical usage of PHPSpec to test your objects.

Dries Vints

October 29, 2014
Tweet

More Decks by Dries Vints

Other Decks in Programming

Transcript

  1. Reasons Excuses why you're not testing 4 Testing is hard

    4 Testing takes too much time 4 Testing won't allow me to make my deadline 4 Achieving 100% coverage is hard 4 Testing only works when used with CI 4 (fictitious) Testing is black magic
  2. Meet PHPSpec 4 Easy to setup 4 Write specifications for

    your objects 4 Test in isolation through mocking 4 Start from the implementation (the how)