Building Testable Applications in PHP

A session at CodeMash 2012

Thursday 12th January, 2012

3:35pm to 3:45pm (EST)

I think it's safe to say that at this point, having SOME sort of automated testing for your application is considered a best practice. Unfortunately, creating a testable application is like having 6-pack abdominal muscles: everyone wants them but few are willing to put in the hard work to make it happen. This talk will approach the idea of Test-Driven Development / Behaviour-Driven Development from a different angle, instead taking a look at strategies for structuring your application is such a way that continuous integration and delivery of your application is not only possible but easily achievable. We will start by looking at anti-features of an application: ways of building things that make them very difficult to test. From there we will progress onto things like Demeter's Law, dependency injection and how to create the complementary infrastructure to test your application. Finally we will focus on building your confidence level with respect to flawless deploys from "all hands on deck, we're deploying" to "that's the 12th change we pushed into production today".

About the speaker

This person is speaking at this event.
Chris Hartjes

Grumpy web developer and tester, @gtaphp organizer, running @truenorthphp, just waiting for people to START WRITING TESTS bio from Twitter

Next session in Indigo Bay

4:50pm Database Migrations for Web Applications by Colin Bowern

Coverage of this session

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

Tell your friends!


Time 3:35pm3:45pm EST

Date Thu 12th January 2012

Short URL


View the schedule



See something wrong?

Report an issue with this session