Testing untestable code

Stephan Hochdoerfer (17.Apr.2010 at 15:40)
Talk at PFCongres 2010 (English - UK)

Rating: 5 of 5

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.

Who are you?

Claim talk

By clicking this button you are declaring that you are the speaker responsible for it and a claim request will be sent to the administrator of the event.

If the claim is approved you will be able to edit the information for this talk.

Are you sure?

 
Comments closed.

Comments

Rating: 4 of 5

17.Apr.2010 at 13:25 by Paul Borgermans

Learned again a few important rules, realizing I'm sitting on a bunch of hard to test legacy code.

Thanks!

Rating: 5 of 5

17.Apr.2010 at 14:01 by Harrie Verveer

Really interesting talk! I learned some new cool tricks I can use. It's clear you know a lot about the subject you're talking about.

Rating: 4 of 5

18.Apr.2010 at 12:16 by Rick Buitenman

Learned a number of very useful new tricks (some of them I'm afraid to pass on to coworkers ;-)), which I'm definitely going to apply in upcoming work on legacy code.

Rating: 5 of 5

18.Apr.2010 at 16:14 by Mark Kazemier

The presentation was very interesting! I knew some of these tricks in Java, but never thought of it in PHP. I learned a lot and I will certainly use it.

Rating: 5 of 5

29.Apr.2010 at 10:50 by Taco Vader

Clearly this subject was closer to Stephan's line of work or interest. It was presented more clearly and more enthusiastically than the DI-talk. Some very, very ugly legacy code with some very creative solutions. Lots of fun to watch, hopefully I will never have to use it!

Cloud server hosting by Combell Combell      © Joind.in 2012