Testing untestable code

A session at phpDay 2011

Saturday 14th May, 2011

11:30am to 12:20pm (CET)

Testing software applications with the help of unit testing facilities is an widely-adopted standard in the software development industry today. Even the PHP community provides such tools to automate the testing of PHP applications. Unfortunately there exist legacy applications that are not testable by their internal design. Testing an single component of such an application in isolation is not possible in those cases due to their dependencies on other components. This often leads to the point of manual testing which is cost-intense and error-prone. In the first part of the session it is shown how the dynamic nature of PHP itself can be used to manipulate existing dependencies to be able to test a single component of the application on its own. In the second part of the session an additional layer of abstraction is introduced. By using that layer it is shown how to transform components of the original source code into testable code fragments.

About the speaker

This person is speaking at this event.
Stephan Hochdörfer

Software developer, Internet geek and entrepreneur by heart with a magic touch.

Coverage of this session

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

phpDay 2011

Italy Italy, Verona

12th14th May 2011

Tell your friends!

When

Time 11:30am12:20pm CET

Date Sat 14th May 2011

Short URL

lanyrd.com/sdhyw

View the schedule

Share

Topics

See something wrong?

Report an issue with this session