We will start with a few best practises for unit testing followed by a quick tour through the main features of PHPUnit (if needed). In the main part of the workshop we will design and write (unit) test cases for some legacy code. The code contains some business logic, together with a requirements specification, but no tests. We will experiment with different test cases and focus on various aspects of unit tests, e.g. naming, duplication, isolation, etc.
You'll work on code yourself, so please bring your laptop. You should also have PHP installed and be able to run PHPUnit in a matter of minutes.
Your trainer: Peter Kofler
Peter Kofler is a software developer since 15 years and still enthusiastic about writing code. He likes his code being in order. Obviously he is fanatic about code quality. He helps teams of Software Developers to raise the quality of their work and improve their productivity. He regularly facilitates Coding Dojos and Code Retreats. Find him at www.code-cop.org (http://www.code-cop.org/)!