Slide 1

Slide 1 text

BDD With PHPSpec

Slide 2

Slide 2 text

Dries 4 BeatSwitch.com 4 Laravel.IO 4 Laracon EU 4 driesvints.com

Slide 3

Slide 3 text

Who writes tests?

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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)

Slide 6

Slide 6 text

Not Covered 4 Prophecy 4 Behat

Slide 7

Slide 7 text

Let's test something!

Slide 8

Slide 8 text

If you can't test your object with PHPSpec, you're probably doing something wrong

Slide 9

Slide 9 text

Questions?

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Thanks! 4 @driesvints 4 driesvints.com 4 Joind.in: http://joind.in/talk/view/12534