Your code are my tests! (Testing Legacy Code)

A session at Bulgaria PHP

Sunday 27th September, 2015

11:20am to 12:00pm (EET)

After years of promoting PHPUnit I still hear it's hard to get started with unit testing. So instead of showing nice step-by-step examples on how to use PHPUnit, we're going to take an example straight from github.

So I've taken the challenge to start writing tests for PHP projects that don't have unit tests in place and explain how I decide where to begin, how I approach my test strategy and how I ensure I’m covering each possible use-case (and covering the CRAP index).

The goal of this presentation is to show everyone that even legacy code, spaghetti code and complex code bases can be tested. After this talk you can immediately apply my examples on your own codebase (even if it's a clean code base) and get started with testing. To follow along a basic knowledge unit testing with PHPUnit is required.

About the speaker

This person is speaking at this event.
Michelangelo van Dam

Test it, code it, ship it and enjoy life!

Sign in to add slides, notes or videos to this session

Bulgaria PHP

Bulgaria Bulgaria, Sofia

25th27th September 2015

Tell your friends!


Time 11:20am12:00pm EET

Date Sun 27th September 2015

Short URL


Official event site


View the schedule


See something wrong?

Report an issue with this session