Apr 17, 2010, 14:01 by harrie
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.
Stephan Hochdörfer (Apr 17, 2010 at 14:40)
Talk at PFCongres 2010 (English - UK)
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.
Quicklink: http://joind.in/1512
Track(s): Microsoft room
Slides: Testing untestable code
Apr 17, 2010, 14:01 by harrie
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.
Apr 18, 2010, 12:16 by rickmb
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.
Apr 18, 2010, 16:14 by Markkaz
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.
Apr 29, 2010, 10:50 by tacov
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!
Apr 17, 2010, 13:25 by pborgerm
Learned again a few important rules, realizing I'm sitting on a bunch of hard to test legacy code.
Thanks!